Browse Source

[debug] import cwd

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

11
test/test_compilation/test_compilation.py

@ -137,6 +137,17 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
except subprocess.CalledProcessError as error:
print(error.output)
print("### import cwd")
try:
importcwd = subprocess.check_output(
[sys.executable, "-c", 'import patacrep.songbook as sb;print(sb)'],
stderr=subprocess.STDOUT,
cwd=os.path.dirname(songbook)
)
print(importcwd)
except subprocess.CalledProcessError as error:
print(error.output)
print("### dir site-packages")
dirres = subprocess.check_output(["dir", 'C:\projects\patacrep\.tox\py34\lib\site-packages'])
print(dirres)

Loading…
Cancel
Save