Fixes in console.py
This commit is contained in:
parent
934e4e1a1b
commit
858ff65899
3 changed files with 33 additions and 5 deletions
|
|
@ -91,6 +91,15 @@ def start():
|
|||
except:
|
||||
|
||||
print('Error: cannot copy the file create_module.py. Check if exists and if you have permissions for this task')
|
||||
|
||||
|
||||
try:
|
||||
|
||||
shutil.copy(workdir+'/settings/modules.py.admin', path_settings+'/modules.py')
|
||||
|
||||
except:
|
||||
|
||||
print('Error: cannot copy the file modules.py. Check if exists and if you have permissions for this task')
|
||||
|
||||
if args.symlink!=None:
|
||||
try:
|
||||
|
|
@ -99,10 +108,6 @@ def start():
|
|||
except:
|
||||
print('Error: cannot symlink paramecio in new site')
|
||||
|
||||
#Regenerate modules
|
||||
|
||||
regenerate_modules_config()
|
||||
|
||||
# Question about mysql configuration? If yes, install configuration
|
||||
|
||||
s=input('Do you want use paramecio with MySQL database? y/n: ')
|
||||
|
|
@ -179,6 +184,14 @@ def start():
|
|||
f.write(config_text)
|
||||
|
||||
f.close()
|
||||
|
||||
try:
|
||||
|
||||
shutil.copy(workdir+'/settings/modules.py.admin', path_settings+'/modules.py')
|
||||
|
||||
except:
|
||||
|
||||
print('Error: cannot copy the file modules.py. Check if exists and if you have permissions for this task')
|
||||
|
||||
print('Created admin site...')
|
||||
|
||||
|
|
@ -191,6 +204,5 @@ def start():
|
|||
|
||||
# Question about install admin site.
|
||||
|
||||
|
||||
if __name__=="__main__":
|
||||
start()
|
||||
|
|
|
|||
6
paramecio/settings/modules.py
Normal file
6
paramecio/settings/modules.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
list_modules=[]
|
||||
|
||||
from paramecio.modules.welcome import index
|
||||
|
||||
10
paramecio/settings/modules.py.admin
Normal file
10
paramecio/settings/modules.py.admin
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
list_modules=[]
|
||||
|
||||
from paramecio.modules.welcome import index
|
||||
|
||||
from paramecio.modules.admin import index
|
||||
|
||||
from paramecio.modules.lang import index
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue