def getScripts(projname, basedir=''):
 scriptdir = os.path.join(basedir, 'bin', projname)
 if (not os.path.isdir(scriptdir)):
  scriptdir = os.path.join(basedir, 'bin')
  if (not os.path.isdir(scriptdir)):
   return []
 thingies = os.listdir(scriptdir)
 if ('.svn' in thingies):
  thingies.remove('.svn')
 return filter(os.path.isfile, [os.path.join(scriptdir, x) for x in thingies])

def getScripts ( projname , basedir = '' ) : scriptdir = os . path . join ( basedir , 'bin' , projname ) if ( not os . path . isdir ( scriptdir ) ) : scriptdir = os . path . join ( basedir , 'bin' ) if ( not os . path . isdir ( scriptdir ) ) : return [ ] thingies = os . listdir ( scriptdir ) if ( '.svn' in thingies ) : thingies . remove ( '.svn' ) return filter ( os . path . isfile , [ os . path . join ( scriptdir , x ) for x in thingies ] )
returns a list of scripts for a twisted subproject; this works in any of an svn checkout .