From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1ACAA138350 for ; Sun, 3 May 2020 22:54:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9601BE09BD; Sun, 3 May 2020 22:54:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7B3E5E09BD for ; Sun, 3 May 2020 22:54:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 22CAE34EF52 for ; Sun, 3 May 2020 22:54:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8C0511B4 for ; Sun, 3 May 2020 22:54:33 +0000 (UTC) From: "Max Magorsch" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Max Magorsch" Message-ID: <1588546386.7f9568e9554cf7d174535eceff778a40aa499cd0.arzano@gentoo> Subject: [gentoo-commits] proj/gentoo-mirrorstats:master commit in: html/ X-VCS-Repository: proj/gentoo-mirrorstats X-VCS-Files: html/generate.py X-VCS-Directories: html/ X-VCS-Committer: arzano X-VCS-Committer-Name: Max Magorsch X-VCS-Revision: 7f9568e9554cf7d174535eceff778a40aa499cd0 X-VCS-Branch: master Date: Sun, 3 May 2020 22:54:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 63d315be-7baa-4344-b43b-5289ec0f988c X-Archives-Hash: 10e55e962a9a579ffe025f213fada28e commit: 7f9568e9554cf7d174535eceff778a40aa499cd0 Author: Max Magorsch gentoo org> AuthorDate: Sun May 3 22:53:06 2020 +0000 Commit: Max Magorsch gentoo 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 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.") - -