def get_spider_queues(config):
 dbsdir = config.get('dbs_dir', 'dbs')
 if (not os.path.exists(dbsdir)):
  os.makedirs(dbsdir)
 d = {}
 for project in get_project_list(config):
  dbpath = os.path.join(dbsdir, ('%s.db' % project))
  d[project] = SqliteSpiderQueue(dbpath)
 return d

def get_spider_queues ( config ) : dbsdir = config . get ( 'dbs_dir' , 'dbs' ) if ( not os . path . exists ( dbsdir ) ) : os . makedirs ( dbsdir ) d = { } for project in get_project_list ( config ) : dbpath = os . path . join ( dbsdir , ( '%s.db' % project ) ) d [ project ] = SqliteSpiderQueue ( dbpath ) return d
return a dict of spider quees keyed by project name .