chiark / gitweb /
Only allow printing with slic3r if we can find the executable, else silently use...
authordaid <daid303@gmail.com>
Mon, 23 Apr 2012 13:24:16 +0000 (15:24 +0200)
committerdaid <daid303@gmail.com>
Mon, 23 Apr 2012 13:24:16 +0000 (15:24 +0200)
Cura/util/sliceRun.py

index 0bc157fa1e88be44a9b977ad3ea19a79afd625f6..e4ddf2f66581c059e283c64b7d4e524ff2723605 100644 (file)
@@ -61,7 +61,7 @@ def runSlice(fileNames):
                        subprocess.call([pypyExe, os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", os.path.split(sys.argv[0])[1])), '-p', profile.getGlobalProfileString(), fileName])
 
 def getSliceCommand(filename):
-       if profile.getPreference('slicer').startswith('Slic3r'):
+       if profile.getPreference('slicer').startswith('Slic3r') and getSlic3rExe() != False:
                slic3rExe = getSlic3rExe()
                if slic3rExe == False:
                        return False