[Piglit] [PATCH 3/6] generators: add mako version to the modue path.

Dylan Baker baker.dylan.c at gmail.com
Thu Mar 3 01:20:59 UTC 2016


---
 generated_tests/templates/__init__.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/generated_tests/templates/__init__.py b/generated_tests/templates/__init__.py
index f974825..2f3cf0e 100644
--- a/generated_tests/templates/__init__.py
+++ b/generated_tests/templates/__init__.py
@@ -26,6 +26,7 @@ import sys
 import getpass
 import tempfile
 
+import mako
 from mako.template import Template
 from mako.lookup import TemplateLookup
 
@@ -33,7 +34,8 @@ from mako.lookup import TemplateLookup
 # Based on a similar setup in framework/summary
 MAKO_TEMP_DIR = os.path.join(tempfile.gettempdir(),
                              'piglit-{0}'.format(getpass.getuser()),
-                             'version-{0}'.format(sys.version.split()[0]),
+                             'python-{}'.format(sys.version.split()[0]),
+                             'mako-{}'.format(mako.__version__),
                              'generators', 'templates')
 
 TEMPLATE_DIR = os.path.abspath(os.path.dirname(__file__))
-- 
2.7.2



More information about the Piglit mailing list