From 9abdbddc134b7f6609a0d37c4adfbd4d813929e6 Mon Sep 17 00:00:00 2001 From: nallath Date: Tue, 4 Mar 2014 10:00:55 +0100 Subject: [PATCH] Fixed bug where development version did not found CuraEngine --- Cura/util/sliceEngine.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cura/util/sliceEngine.py b/Cura/util/sliceEngine.py index 432038dd..819b7795 100644 --- a/Cura/util/sliceEngine.py +++ b/Cura/util/sliceEngine.py @@ -40,7 +40,10 @@ def getEngineFilename(): return '/usr/bin/CuraEngine' if os.path.isfile('/usr/local/bin/CuraEngine'): return '/usr/local/bin/CuraEngine' - return os.path.abspath(os.path.join(os.path.dirname(__file__), '../..', 'CuraEngine')) + tempPath = os.path.abspath(os.path.join(os.path.dirname(__file__), '../..', 'CuraEngine')) + if os.path.isdir(tempPath): + tempPath = os.path.join(tempPath,'CuraEngine') + return tempPath class EngineResult(object): """ @@ -546,4 +549,5 @@ class Engine(object): su.wShowWindow = subprocess.SW_HIDE kwargs['startupinfo'] = su kwargs['creationflags'] = 0x00004000 #BELOW_NORMAL_PRIORITY_CLASS + print cmdList return subprocess.Popen(cmdList, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs) -- 2.30.2