summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmirouche <amirouche.boubekki@gmail.com>2019-02-02 17:03:15 +0100
committerng0 <ng0@n0.is>2019-02-02 16:46:37 +0000
commit67123119f3fd5ce5123122d4079c69f3e9f637a2 (patch)
tree4a014213ff6a6e85b6aa605dc63008668339aeca
parent179d2970ab0aa8a85e51064988644814cee2d42f (diff)
cosmit
See previous commit
-rwxr-xr-xtemplate.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/template.py b/template.py
index fa978b72..0af50f68 100755
--- a/template.py
+++ b/template.py
@@ -20,19 +20,7 @@ import gettext
import glob
import codecs
import jinja2
-
-# FIXME: lint will complain about this. Do NOT! fix this by writing
-# import i18nfix again, send an email to our developer list if you
-# have a problem with your system specific python integration!
-# PACKAGE_PARENT = '..'
-# SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
-# sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))
-# sys.path.append(os.getcwd())
-#from www import i18nfix
-try:
- from . import i18nfix
-except ImportError:
- import i18nfix
+import i18nfix
env = jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
extensions=["jinja2.ext.i18n"],