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)")