import os import sys here = os.path.dirname(__file__) srcdir = os.path.join(here, 'src') sys.path.insert(0, srcdir) import dcow.app config = os.path.join(here, 'production.ini') application = dcow.app.Application.create(config)