diff options
author | Amirouche <amirouche.boubekki@gmail.com> | 2019-02-02 17:03:15 +0100 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-02-02 16:46:37 +0000 |
commit | 67123119f3fd5ce5123122d4079c69f3e9f637a2 (patch) | |
tree | 4a014213ff6a6e85b6aa605dc63008668339aeca | |
parent | 179d2970ab0aa8a85e51064988644814cee2d42f (diff) | |
download | www-67123119f3fd5ce5123122d4079c69f3e9f637a2.tar.gz www-67123119f3fd5ce5123122d4079c69f3e9f637a2.zip |
cosmit
See previous commit
-rwxr-xr-x | template.py | 14 |
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 | |||
20 | import glob | 20 | import glob |
21 | import codecs | 21 | import codecs |
22 | import jinja2 | 22 | import jinja2 |
23 | 23 | import i18nfix | |
24 | # FIXME: lint will complain about this. Do NOT! fix this by writing | ||
25 | # import i18nfix again, send an email to our developer list if you | ||
26 | # have a problem with your system specific python integration! | ||
27 | # PACKAGE_PARENT = '..' | ||
28 | # SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__)))) | ||
29 | # sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT))) | ||
30 | # sys.path.append(os.getcwd()) | ||
31 | #from www import i18nfix | ||
32 | try: | ||
33 | from . import i18nfix | ||
34 | except ImportError: | ||
35 | import i18nfix | ||
36 | 24 | ||
37 | env = jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__)), | 25 | env = jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__)), |
38 | extensions=["jinja2.ext.i18n"], | 26 | extensions=["jinja2.ext.i18n"], |