from os import path APP_DIR = path.dirname(__file__) DATABASE = '%s' % path.join(APP_DIR, 'spider.db')