From dc688ecc39d1e0f31b96e1fbd152fb3b4b2130b6 Mon Sep 17 00:00:00 2001 From: Simon Kern Date: Thu, 17 Oct 2013 00:14:56 +0200 Subject: [PATCH] fixed the path for core/commands/templates --- MANIFEST.in | 3 ++- modoboa/core/commands/__init__.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 38f115085..02a707cf3 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,5 @@ include README.rst COPYING requirements.txt recursive-include modoboa *.html *.js *.css *.png *.po *.mo *.json *.gif recursive-include modoboa/core/templates *.tpl -recursive-include doc * \ No newline at end of file +recursive-include modoboa/core/commands/templates *.tpl +recursive-include doc * diff --git a/modoboa/core/commands/__init__.py b/modoboa/core/commands/__init__.py index e7ef1ae9e..9b2b1c9f2 100644 --- a/modoboa/core/commands/__init__.py +++ b/modoboa/core/commands/__init__.py @@ -19,7 +19,7 @@ class Command(object): self._verbose = verbose if not settings.configured: settings.configure() - self._templates_dir = "%s/commands/templates" % os.path.dirname(__file__) + self._templates_dir = "%s/templates" % os.path.dirname(__file__) def _render_template(self, tplfile, env): fp = open(tplfile)