public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Max Magorsch" <arzano@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-mirrorstats:master commit in: html/
Date: Sun,  3 May 2020 22:54:33 +0000 (UTC)	[thread overview]
Message-ID: <1588546386.7f9568e9554cf7d174535eceff778a40aa499cd0.arzano@gentoo> (raw)

commit:     7f9568e9554cf7d174535eceff778a40aa499cd0
Author:     Max Magorsch <arzano <AT> gentoo <DOT> org>
AuthorDate: Sun May  3 22:53:06 2020 +0000
Commit:     Max Magorsch <arzano <AT> gentoo <DOT> org>
CommitDate: Sun May  3 22:53:06 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=7f9568e9

Use absolute path for the html template folder

Signed-off-by: Max Magorsch <arzano <AT> gentoo.org>

 html/generate.py | 5 ++---
 1 file 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.")
-
-


             reply	other threads:[~2020-05-03 22:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-03 22:54 Max Magorsch [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-14 21:51 [gentoo-commits] proj/gentoo-mirrorstats:master commit in: html/ Robin H. Johnson
2024-09-14 21:49 Robin H. Johnson
2020-06-07 21:55 Max Magorsch
2020-06-07 20:39 Max Magorsch
2020-06-07 20:17 Max Magorsch
2020-06-07 19:54 Max Magorsch
2020-06-07 19:54 Max Magorsch
2020-05-07 20:44 Max Magorsch
2020-05-07 20:25 Max Magorsch
2020-05-07 18:18 Robin H. Johnson
2020-05-07 18:18 Robin H. Johnson
2020-05-06 23:46 Max Magorsch
2020-05-03 23:08 Max Magorsch
2020-05-03 22:54 Max Magorsch
2020-05-03 22:47 Max Magorsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1588546386.7f9568e9554cf7d174535eceff778a40aa499cd0.arzano@gentoo \
    --to=arzano@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox