diff --git a/paramecio/console.py b/paramecio/console.py index 971345e..d8cb6ec 100644 --- a/paramecio/console.py +++ b/paramecio/console.py @@ -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() diff --git a/paramecio/settings/modules.py b/paramecio/settings/modules.py new file mode 100644 index 0000000..797b155 --- /dev/null +++ b/paramecio/settings/modules.py @@ -0,0 +1,6 @@ +#!/usr/bin/python3 + +list_modules=[] + +from paramecio.modules.welcome import index + diff --git a/paramecio/settings/modules.py.admin b/paramecio/settings/modules.py.admin new file mode 100644 index 0000000..692c091 --- /dev/null +++ b/paramecio/settings/modules.py.admin @@ -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 +