1234567891011121314151617181920212223242526272829303132 |
- #-*- coding: utf-8 -*-
-
- import sys, os
- #
- # Bootstraping
- #
- LODEL2_LIB_ABS_PATH = None
- if LODEL2_LIB_ABS_PATH is not None:
- sys.path.append(os.path.dirname(LODEL2_LIB_ABS_PATH))
-
- try:
- import lodel
- except ImportError:
- print("Unable to load lodel module. exiting...", file = sys.stderr)
- exit(1)
-
-
- #
- # Loading settings
- #
- from lodel.settings.settings import Settings as settings
- settings('conf.d')
- from lodel.settings import Settings
-
-
- if __name__ == '__main__': # To allow running interactive python
- import code
- print("""
- Running interactive python in Lodel2 %s instance environment
-
- """%Settings.sitename)
- code.interact(local=locals())
|