keystone/httpd/keystone.py
Dan Prince 8dcafd81df Various pep8 fixes for keystone.
Change-Id: Id94b76d30658e75a805301b1c30b1aa28138b823
2012-11-09 22:34:35 -05:00

22 lines
533 B
Python
Executable File

import os
from paste import deploy
from keystone import config
from keystone.common import logging
LOG = logging.getLogger(__name__)
CONF = config.CONF
config_files = ['/etc/keystone/keystone.conf']
CONF(project='keystone', default_config_files=config_files)
conf = CONF.config_file[0]
name = os.path.basename(__file__)
if CONF.debug:
CONF.log_opt_values(logging.getLogger(CONF.prog), logging.DEBUG)
options = deploy.appconfig('config:%s' % CONF.config_file[0])
application = deploy.loadapp('config:%s' % conf, name=name)