This commit is contained in:
Antonio de la Rosa 2025-03-09 10:27:29 +01:00
parent a1592b657d
commit 77a44af384
3 changed files with 5 additions and 4 deletions

View file

@ -156,7 +156,7 @@ except:
def catch_errors(all='/'): def catch_errors(all='/'):
try: try:
from pathlib import Path from pathlib import Path
from settings import modules #from settings import modules
import time import time
prepare_app() prepare_app()
p=Path('index.py') p=Path('index.py')

View file

@ -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') print('Error: cannot copy the file create_module.py. Check if exists and if you have permissions for this task')
"""
try: try:
shutil.copy(workdir+'/settings/modules.py', path_settings+'/modules.py') shutil.copy(workdir+'/settings/modules.py', path_settings+'/modules.py')
@ -120,6 +120,7 @@ def start():
except: except:
print('Error: cannot copy the file modules.py. Check if exists and if you have permissions for this task') print('Error: cannot copy the file modules.py. Check if exists and if you have permissions for this task')
"""
if args.symlink==True: if args.symlink==True:
try: try:

View file

@ -86,9 +86,9 @@ def preload_templates(template_files, env):
return templates return templates
def url_for(name): def url_for(name, **kwargs):
return app.get_url(name) return app.get_url(name, **kwargs)
class PTemplate: class PTemplate:
"""A class used how shortcuts for Mako template functions. """A class used how shortcuts for Mako template functions.