From f5f02ead88094e130d31ee3b59600ddcda763a8f Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Mon, 27 Feb 2017 17:12:01 +0100 Subject: [PATCH] Added some debug. CURA-3418 Cura build on Win 64 fails due to $PYTHONPATH --- cura_app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cura_app.py b/cura_app.py index 989c45b37a..2fc8752cee 100755 --- a/cura_app.py +++ b/cura_app.py @@ -60,6 +60,10 @@ if Platform.isWindows() and hasattr(sys, "frozen"): sys.stdout = open(os.path.join(dirpath, "stdout.log"), "w") sys.stderr = open(os.path.join(dirpath, "stderr.log"), "w") +if Platform.isWindows(): + print("sys.path: " + repr(sys.path)) + print("has sys.frozen: " + str(hasattr(sys, "frozen"))) + # Force an instance of CuraContainerRegistry to be created and reused later. cura.Settings.CuraContainerRegistry.CuraContainerRegistry.getInstance()