gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[www_shared] 18/19: avoid need to have Makefile set PYTHONPATH (breaks t


From: gnunet
Subject: [www_shared] 18/19: avoid need to have Makefile set PYTHONPATH (breaks then other things)
Date: Sat, 25 Jan 2020 11:29:33 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository www_shared.

commit eb6a5c5d225a785f2510c466b7410fc5851fa030
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Dec 23 00:19:40 2019 +0100

    avoid need to have Makefile set PYTHONPATH (breaks then other things)
---
 site.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/site.py b/site.py
index 7de9816..b38f993 100644
--- a/site.py
+++ b/site.py
@@ -18,6 +18,11 @@ import codecs
 import jinja2
 from pathlib import Path, PurePosixPath, PurePath
 from ruamel.yaml import YAML
+
+# Make sure the current directory is in the search path when trying
+# to import i18nfix.
+sys.path.insert(0, ".")
+
 import inc.i18nfix as i18nfix
 from inc.textproc import cut_news_text, cut_article
 from inc.fileproc import copy_files, copy_tree

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]