diff options
author | Nils Gillmann <gillmann@infotropique.org> | 2018-07-01 14:18:36 +0000 |
---|---|---|
committer | Nils Gillmann <gillmann@infotropique.org> | 2018-07-01 14:18:36 +0000 |
commit | 23c436850674185f98c1ceab31cae13fde2aca65 (patch) | |
tree | e436613f146ed4c93944a530313edd180fca85d1 | |
parent | bfa7e76bc171ad2c006465828049444635e25b8f (diff) | |
download | www-23c436850674185f98c1ceab31cae13fde2aca65.tar.gz www-23c436850674185f98c1ceab31cae13fde2aca65.zip |
template.py: Use correct relative import
Signed-off-by: Nils Gillmann <gillmann@infotropique.org>
-rw-r--r-- | guix-env.scm | 6 | ||||
-rwxr-xr-x | template.py | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/guix-env.scm b/guix-env.scm index 9bca8070..92c989bd 100644 --- a/guix-env.scm +++ b/guix-env.scm | |||
@@ -1,5 +1,5 @@ | |||
1 | ;;; This file is part of GNUnet. | 1 | ;;; This file is part of GNUnet. |
2 | ;;; Copyright (C) 2017 GNUnet e.V. | 2 | ;;; Copyright (C) 2017, 2018 GNUnet e.V. |
3 | ;;; | 3 | ;;; |
4 | ;;; GNUnet is free software; you can redistribute it and/or modify | 4 | ;;; GNUnet is free software; you can redistribute it and/or modify |
5 | ;;; it under the terms of the GNU General Public License as published | 5 | ;;; it under the terms of the GNU General Public License as published |
@@ -66,12 +66,10 @@ | |||
66 | (gnu packages xiph) | 66 | (gnu packages xiph) |
67 | ((guix licenses) #:prefix license:)) | 67 | ((guix licenses) #:prefix license:)) |
68 | 68 | ||
69 | ;; Named "guix-env", but not really "env" yet. | ||
70 | |||
71 | (define %source-dir (dirname (current-filename))) | 69 | (define %source-dir (dirname (current-filename))) |
72 | 70 | ||
73 | (define gnunet-website-git | 71 | (define gnunet-website-git |
74 | (let* ((revision "1")) | 72 | (let* ((revision "2")) |
75 | (package | 73 | (package |
76 | (name "gnunet-website-git") | 74 | (name "gnunet-website-git") |
77 | (version (string-append "0.0.0-" revision "." "dev")) | 75 | (version (string-append "0.0.0-" revision "." "dev")) |
diff --git a/template.py b/template.py index 0c995611..284e5842 100755 --- a/template.py +++ b/template.py | |||
@@ -17,7 +17,7 @@ import glob | |||
17 | import codecs | 17 | import codecs |
18 | import os | 18 | import os |
19 | sys.path.append(os.getcwd()) | 19 | sys.path.append(os.getcwd()) |
20 | import i18nfix | 20 | from . import i18nfix |
21 | 21 | ||
22 | env = jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__)), | 22 | env = jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__)), |
23 | extensions=["jinja2.ext.i18n"], | 23 | extensions=["jinja2.ext.i18n"], |