def scriptpath(scriptname='interleave-reads.py'):
 path = os.path.join(os.path.dirname(__file__), '../scripts')
 if os.path.exists(os.path.join(path, scriptname)):
  return path
 path = os.path.join(os.path.dirname(__file__), '../../EGG-INFO/scripts')
 if os.path.exists(os.path.join(path, scriptname)):
  return path
 for path in os.environ['PATH'].split(':'):
  if os.path.exists(os.path.join(path, scriptname)):
   return path

def scriptpath ( scriptname = 'interleave-reads.py' ) : path = os . path . join ( os . path . dirname ( __file__ ) , '../scripts' ) if os . path . exists ( os . path . join ( path , scriptname ) ) : return path path = os . path . join ( os . path . dirname ( __file__ ) , '../../EGG-INFO/scripts' ) if os . path . exists ( os . path . join ( path , scriptname ) ) : return path for path in os . environ [ 'PATH' ] . split ( ':' ) : if os . path . exists ( os . path . join ( path , scriptname ) ) : return path
return the path to the scripts .