From 4e05433a274351435befe43beff71296024c474a Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Thu, 29 Oct 2015 19:24:39 +0100 Subject: [PATCH] [debug] import cwd --- test/test_compilation/test_compilation.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/test_compilation/test_compilation.py b/test/test_compilation/test_compilation.py index 6fdaf5be..b315cce7 100644 --- a/test/test_compilation/test_compilation.py +++ b/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)