summaryrefslogtreecommitdiffstats
path: root/module/webui/app/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/webui/app/utils.py')
-rw-r--r--module/webui/app/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/webui/app/utils.py b/module/webui/app/utils.py
index 5bb10e478..1ba08e9a7 100644
--- a/module/webui/app/utils.py
+++ b/module/webui/app/utils.py
@@ -15,6 +15,9 @@
@author: RaNaN
"""
+
+from os.path import join
+
from bottle import request, HTTPError, redirect, ServerAdapter
from module.webui import env, THEME
@@ -24,7 +27,7 @@ from module.Api import has_permission, PERMS, ROLE
def render_to_response(file, args={}, proc=[]):
for p in proc:
args.update(p())
- path = "%s/tml/%s" % (THEME, file)
+ path = join(THEME, "tml", file)
return env.get_template(path).render(**args)