Fixes
This commit is contained in:
parent
a1592b657d
commit
77a44af384
3 changed files with 5 additions and 4 deletions
|
|
@ -156,7 +156,7 @@ except:
|
|||
def catch_errors(all='/'):
|
||||
try:
|
||||
from pathlib import Path
|
||||
from settings import modules
|
||||
#from settings import modules
|
||||
import time
|
||||
prepare_app()
|
||||
p=Path('index.py')
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ def start():
|
|||
|
||||
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', path_settings+'/modules.py')
|
||||
|
|
@ -120,6 +120,7 @@ def start():
|
|||
except:
|
||||
|
||||
print('Error: cannot copy the file modules.py. Check if exists and if you have permissions for this task')
|
||||
"""
|
||||
|
||||
if args.symlink==True:
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -86,9 +86,9 @@ def preload_templates(template_files, env):
|
|||
|
||||
return templates
|
||||
|
||||
def url_for(name):
|
||||
def url_for(name, **kwargs):
|
||||
|
||||
return app.get_url(name)
|
||||
return app.get_url(name, **kwargs)
|
||||
|
||||
class PTemplate:
|
||||
"""A class used how shortcuts for Mako template functions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue