From 4bdccc555eacc6a8e66507cf1ef99a946f97284a Mon Sep 17 00:00:00 2001 From: Amirouche Date: Sat, 2 Feb 2019 17:03:15 +0100 Subject: [PATCH 2/3] cosmit See previous commit --- template.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/template.py b/template.py index fa978b7..0af50f6 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"], -- 2.19.1