From 10216cdcb518cc97f593d85c141a9783a2aac873 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sun, 26 Feb 2012 16:36:13 +0000 Subject: [PATCH] Use our _runenv when testing, not the system one Reported by Bastian Eicher. --- tests/testrun.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/testrun.py b/tests/testrun.py index 2f4e471..7c05b95 100755 --- a/tests/testrun.py +++ b/tests/testrun.py @@ -6,6 +6,9 @@ from StringIO import StringIO sys.path.insert(0, '..') +# (testing command support imports zeroinstall.injector._runenv in a sub-process) +os.environ['PYTHONPATH'] = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + from zeroinstall.injector import policy, run, namespaces from zeroinstall import SafeException -- 2.11.4.GIT