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)
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)
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)