From 972f58d903ae86f3558171bf0e947e32de78ee3f Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Thu, 29 Oct 2015 19:19:12 +0100 Subject: [PATCH] [debug] print sys.path with cwd --- test/test_compilation/test_compilation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_compilation/test_compilation.py b/test/test_compilation/test_compilation.py index ceaf4d01..6fdaf5be 100644 --- a/test/test_compilation/test_compilation.py +++ b/test/test_compilation/test_compilation.py @@ -109,7 +109,9 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): print(sys.path) print("## sys.path (external)") - syspath = subprocess.check_output([sys.executable, "-c", 'import sys;print(sys.path)']) + syspath = subprocess.check_output([sys.executable, "-c", 'import sys;print(sys.path)'], + stderr=subprocess.STDOUT, + cwd=os.path.dirname(songbook)) print(syspath) print("## import (external)")