def get_project_list(config):
 eggs_dir = config.get('eggs_dir', 'eggs')
 if os.path.exists(eggs_dir):
  projects = os.listdir(eggs_dir)
 else:
  projects = []
 try:
  projects += [x[0] for x in config.cp.items('settings')]
 except NoSectionError:
  pass
 return projects

def get_project_list ( config ) : eggs_dir = config . get ( 'eggs_dir' , 'eggs' ) if os . path . exists ( eggs_dir ) : projects = os . listdir ( eggs_dir ) else : projects = [ ] try : projects += [ x [ 0 ] for x in config . cp . items ( 'settings' ) ] except NoSectionError : pass return projects
get list of projects by inspecting the eggs dir and the ones defined in the scrapyd .