cura/cura-CuraEngine.patch
2013-10-16 14:12:44 +02:00

23 lines
1,012 B
Diff

diff --git a/util/sliceEngine.py b/util/sliceEngine.py
index 8944b05..461dc62 100644
--- a/util/sliceEngine.py
+++ b/util/sliceEngine.py
@@ -17,17 +17,7 @@ from Cura.util import profile
from Cura.util import version
def getEngineFilename():
- if platform.system() == 'Windows':
- if os.path.exists('C:/Software/Cura_SteamEngine/_bin/Release/Cura_SteamEngine.exe'):
- return 'C:/Software/Cura_SteamEngine/_bin/Release/Cura_SteamEngine.exe'
- return os.path.abspath(os.path.join(os.path.dirname(__file__), '../..', 'CuraEngine.exe'))
- if hasattr(sys, 'frozen'):
- return os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../../..', 'CuraEngine'))
- if os.path.isfile('/usr/bin/CuraEngine'):
- 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'))
+ return '/usr/bin/CuraEngine'
def getTempFilename():
warnings.simplefilter('ignore')