diff options
author | 2020-05-04 00:53:06 +0200 | |
---|---|---|
committer | 2020-05-04 00:53:06 +0200 | |
commit | 7f9568e9554cf7d174535eceff778a40aa499cd0 (patch) | |
tree | d34f6171d4361f94c66796701868756f15d18274 | |
parent | Generate html pages based on the mirmon data (diff) | |
download | gentoo-mirrorstats-7f9568e9554cf7d174535eceff778a40aa499cd0.tar.gz gentoo-mirrorstats-7f9568e9554cf7d174535eceff778a40aa499cd0.tar.bz2 gentoo-mirrorstats-7f9568e9554cf7d174535eceff778a40aa499cd0.zip |
Use absolute path for the html template folder
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rwxr-xr-x | html/generate.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/html/generate.py b/html/generate.py index d6f21c0..33a3cd5 100755 --- a/html/generate.py +++ b/html/generate.py @@ -20,6 +20,7 @@ import xml.etree.ElementTree as ET import jinja2 html_folder = "/var/www/mirrorstats.gentoo.org/htdocs/" +template_folder = "/var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/html/" cache_path = "/var/www/mirrorstats.gentoo.org/var/html_data_cache.json" @@ -147,7 +148,7 @@ def getHostList(mirrorstatsList): # # render jinja2 # -templateLoader = jinja2.FileSystemLoader(searchpath="./") +templateLoader = jinja2.FileSystemLoader(searchpath=template_folder) templateEnv = jinja2.Environment(loader=templateLoader) ## stats @@ -174,5 +175,3 @@ with open(cache_path, 'w') as fp: # finish # print("Finished.") - - |