Skip to content
Snippets Groups Projects
Commit 69756cc6 authored by Sebastian Lobinger's avatar Sebastian Lobinger
Browse files

update __init__.py use '__main__' as hub name fixxes issue #2

parent f4a0892d
No related branches found
No related tags found
1 merge request!2Resolve "'__main__' als name für den SAMSHub verwenden."
......@@ -6,7 +6,7 @@ def create(conf_part_hub, conf_part_apps = 'apps',
config_file_path = 'config/config.yaml', dir_apps = '.'):
with open(config_file_path, 'r') as f:
hubConf = yaml.load(f.read())
hub = SAMSHub(name= __name__, config=hubConf[conf_part_hub])
hub = SAMSHub(name='__main__', config=hubConf[conf_part_hub])
hub.flaskApp.config.update(hubConf.get('flask', {}))
for appEntry in hubConf['apps']:
appName = appEntry['name']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment