コード例 #1
0
ファイル: __init__.py プロジェクト: dharmeshpatel/kalapy
def setup_environment(settings_mod):
    """Prepare the runtime environment. Used by project 'admin.py' script.
    It will update the configuration settings and load the project.
    """
    from kalapy.conf import settings
    project_dir = os.path.dirname(os.path.abspath(settings_mod.__file__))
    settings.update(settings_mod, project_dir=project_dir)
コード例 #2
0
ファイル: __init__.py プロジェクト: lafada/kalapy
def setup_environment(settings_mod):
    """Prepare the runtime environment. Used by project 'admin.py' script.
    It will update the configuration settings and load the project.
    """
    from kalapy.conf import settings
    settings.update(settings_mod)
コード例 #3
0
ファイル: __init__.py プロジェクト: garyyeap/zoe-robot
def setup_environment(settings_mod):
    """Prepare the runtime environment. Used by project 'admin.py' script.
    It will update the configuration settings and load the project.
    """
    project_dir = os.path.dirname(os.path.abspath(settings_mod.__file__))
    settings.update(settings_mod, project_dir=project_dir)