Browse Source

[debug] print sys.path with cwd

pull/142/head
Oliverpool 9 years ago
parent
commit
972f58d903
  1. 4
      test/test_compilation/test_compilation.py

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

Loading…
Cancel
Save