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

created example_App.py add ExampleApp module

parent 262d0748
No related branches found
No related tags found
1 merge request!10Resolve "Example App schreiben"
Showing
with 22 additions and 0 deletions
File moved
#from .sams_classes import SAMSHub
import yaml, os, glob
# with open('config/config.yaml', 'r') as f:
# hubConf = yaml.load(f.read())
# hub = SAMSHub(config=hubConf.get(
# 'ExampleApp',
# { 'default_language': 'en', 'main_app': 'Main'}
# ))
# hub.flaskApp.config.update(hubConf.get('flask', {}))
# for appName in hubConf.get('apps', []):
# with open('../' + appName + '/manifest.yaml') as f:
# manifest = yaml.load(f.read())
# # it is possible for the exampleApp to manipulate the manifest if needed
# # manifest.update({}) <-- or whatever
# hub.addApp(SAMSApp(name = appName, manifest = manifest, langDict = langDict))
def search_yaml_files(path):
matchingFiles = []
extensions = ['.yaml', '.yml']
for path in glob.glob(path + '*.yaml'):
print(path + '\n')
\ No newline at end of file
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment