# -*- coding: utf-8 -*- # vim: set fileencoding=utf-8 sw=4 ts=4 et ft=python : #import os, sys #from pkg_resources import get_distribution #egg_file = get_distribution('vigilo-vigiboard').egg_info #import os #os.environ['PYTHON_EGG_CACHE'] = '@LOCALSTATEDIR@/cache/vigilo/eggs' import os.path ini_file = '@SYSCONFDIR@/vigilo/vigiboard/settings.ini' ini_file = os.path.join('/', *ini_file.split('/')) from paste.deploy import loadapp application = loadapp('config:%s' % ini_file) from paste.script.util.logging_config import fileConfig fileConfig(ini_file)