From 23a99afacf40d77d4a173f99ade853d152349470 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Thu, 29 Oct 2015 19:37:11 +0100 Subject: [PATCH] [debug] strict duplication of current_env --- test/test_compilation/test_compilation.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_compilation/test_compilation.py b/test/test_compilation/test_compilation.py index 6beb8bc6..0dc4f5f6 100644 --- a/test/test_compilation/test_compilation.py +++ b/test/test_compilation/test_compilation.py @@ -102,7 +102,7 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): command.extend(['--steps', steps]) current_env = os.environ.copy() - current_env['PYTHONPATH'] = ':'.join(sys.path) + #current_env['PYTHONPATH'] = ':'.join(sys.path) print("#######") print(command) print("#######") @@ -113,7 +113,8 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): print("## sys.path (external)") syspath = subprocess.check_output([sys.executable, "-c", 'import sys;print(sys.path)'], stderr=subprocess.STDOUT, - cwd=os.path.dirname(songbook)) + cwd=os.path.dirname(songbook), + env=current_env) print(syspath) print("## import (external)")