Fixes in install_module
This commit is contained in:
parent
a8274d74fa
commit
2464db78d2
1 changed files with 1 additions and 6 deletions
|
|
@ -57,7 +57,7 @@ def start():
|
|||
dependencies_file='./modules/{}/dependencies.json'.format(real_path)
|
||||
|
||||
if os.path.isfile(dependencies_file):
|
||||
#print('install dependencies')
|
||||
|
||||
dep_json=[]
|
||||
|
||||
with open(dependencies_file) as f:
|
||||
|
|
@ -83,10 +83,6 @@ def start():
|
|||
if subprocess.call("paramecio2db --model modules/{}/models/{}.py".format(real_path, model), shell=True) > 0:
|
||||
|
||||
print('Error, cannot install the model {}.'.format(model))
|
||||
|
||||
#print(real_path)
|
||||
|
||||
#
|
||||
|
||||
# Add to json configuration.
|
||||
|
||||
|
|
@ -98,7 +94,6 @@ def start():
|
|||
|
||||
with open('settings/modules.json') as f:
|
||||
print('Inserting new module in modules.json...')
|
||||
#apps={'monit2': ['modules.monit2', 'monit2_app', '/'], 'welcome': ['paramecio2.modules.welcome', 'welcome_app', '/'], 'pastafari2': ['modules.pastafari2', 'pastafari_app', '/'], 'apache': ['modules.apache', 'apache_app', '/'], 'mariadb': ['modules.mariadb', 'mariadb_app', '/'], 'apiv1': ['modules.apiv1', 'apiv1_app', '/'], 'admin': ['paramecio2.modules.admin', 'admin_app', '/']}
|
||||
|
||||
json_text=f.read()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue