From dc279dcbabb237dd0c71f8d6959231111727aa6e Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 24 Apr 2013 21:47:04 +0000 Subject: [PATCH] [Test] Ensure that the local Python module is the one being imported Explicitly set 'interfaces/python' as the first entry in sys.path, rather than reyling on the PYTHONPATH environment variable, which is sometimes superseded, e.g. by virtualenv. --- test/python/runTests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/python/runTests.py b/test/python/runTests.py index 3c4dd8b9c..97fc5b520 100644 --- a/test/python/runTests.py +++ b/test/python/runTests.py @@ -8,6 +8,8 @@ import sys import os import unittest +sys.path.insert(0, os.path.abspath('../../interfaces/python')) + import Cantera Cantera.addDirectory(os.path.join(os.path.split(os.getcwd())[0], 'data'))