From 92983636b044eee9cfb0a5d29a58302a4a684f0e Mon Sep 17 00:00:00 2001 From: Thomas Karl Pietrowski Date: Mon, 1 Aug 2016 12:29:57 +0200 Subject: [PATCH] Use self.executableName in __init__ --- plugins/CuraEngineBackend/CuraEngineBackend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/CuraEngineBackend/CuraEngineBackend.py b/plugins/CuraEngineBackend/CuraEngineBackend.py index 0569eaf946..d9b973cab4 100644 --- a/plugins/CuraEngineBackend/CuraEngineBackend.py +++ b/plugins/CuraEngineBackend/CuraEngineBackend.py @@ -48,10 +48,10 @@ class CuraEngineBackend(Backend): # Find out where the engine is located, and how it is called. # This depends on how Cura is packaged and which OS we are running on. default_engine_location = None - if os.path.exists(os.path.join(Application.getInstallPrefix(), "bin", "CuraEngine")): - default_engine_location = os.path.join(Application.getInstallPrefix(), "bin", "CuraEngine") + if os.path.exists(os.path.join(Application.getInstallPrefix(), "bin", self.executableName)): + default_engine_location = os.path.join(Application.getInstallPrefix(), "bin", self.executableName) if hasattr(sys, "frozen"): - default_engine_location = os.path.join(os.path.dirname(os.path.abspath(sys.executable)), "CuraEngine") + default_engine_location = os.path.join(os.path.dirname(os.path.abspath(sys.executable)), self.executableName) if Platform.isWindows(): default_engine_location += ".exe" if Platform.isLinux() and not default_engine_location: