chiark / gitweb /
Fix support for slicing if running from pythonw.exe
[cura.git] / Cura / gui / sliceProgessPanel.py
index bd278ccbbdd0d59551c06353b5e23695f3048a78..9cc68431d5954c4810ec30a089686dacbe9a2433 100644 (file)
@@ -135,14 +135,7 @@ class WorkerThread(threading.Thread):
                self.start()
 
        def run(self):
-               kwargs = {} 
-               if subprocess.mswindows: 
-                       su = subprocess.STARTUPINFO() 
-                       su.dwFlags |= subprocess.STARTF_USESHOWWINDOW
-                       su.wShowWindow = subprocess.SW_HIDE
-                       kwargs['startupinfo'] = su
-               print self.cmdList[self.fileIdx]
-               p = subprocess.Popen(self.cmdList[self.fileIdx], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
+               p = sliceRun.startSliceCommandProcess(self.cmdList[self.fileIdx])
                line = p.stdout.readline()
                self.progressLog = []
                maxValue = 1