__init__.py 336 B

123456789101112131415
  1. import logging
  2. from os import environ, path
  3. from lakesuperior import env as lsenv
  4. logger = logging.getLogger(__name__)
  5. basedir = path.dirname(path.realpath(__file__))
  6. # Configure lsup with local directory.
  7. lsup_config_dir = environ.get(
  8. 'LSUP_CONFIG_DIR', path.join(basedir, 'config', 'lsup'))
  9. lsenv.setup(lsup_config_dir)