Commit 54e269f0 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Moved app config to own branch 'app'

parent 5bf47604
......@@ -32,6 +32,12 @@ def load_config_file():
def get_module_manifests():
mypath = get_modules_location()
return [os.path.join(mypath, f) for f in os.listdir(mypath) if os.path.isfile(os.path.join(mypath, f))]
def create_app_config():
config = {}
config['app_path'] = get_install_location()
config['bin_path'] = get_script_location()
return config
def load_modules():
modules = []
......@@ -43,8 +49,7 @@ def load_modules():
def load_config():
config = load_config_file()
config['modules'] = load_modules()
config['app_path'] = get_install_location()
config['bin_path'] = get_script_location()
config['app'] = create_app_config()
return config
if __name__ == "__main__":
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment