Commit c7eeabf3 authored by Guillaume Seguin's avatar Guillaume Seguin

Minor cleanup

parent 06e4818a
...@@ -1366,9 +1366,9 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -1366,9 +1366,9 @@ class PronterWindow(MainWindow, pronsole.pronsole):
def skein_func(self): def skein_func(self):
try: try:
param = self.expandcommand(self.settings.slicecommand) param = self.expandcommand(self.settings.slicecommand)
print "Slicing: ", param
output_filename = self.model_to_gcode_filename(self.filename) output_filename = self.model_to_gcode_filename(self.filename)
pararray = [i.replace("$s", self.filename).replace("$o", output_filename) for i in shlex.split(param.replace("\\", "\\\\"))] pararray = [i.replace("$s", self.filename).replace("$o", output_filename) for i in shlex.split(param.replace("\\", "\\\\"))]
print "Slicing: " + " ".join(pararray)
self.skeinp = subprocess.Popen(pararray, stderr = subprocess.STDOUT, stdout = subprocess.PIPE) self.skeinp = subprocess.Popen(pararray, stderr = subprocess.STDOUT, stdout = subprocess.PIPE)
while True: while True:
o = self.skeinp.stdout.read(1) o = self.skeinp.stdout.read(1)
...@@ -1382,7 +1382,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -1382,7 +1382,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
traceback.print_exc(file = sys.stdout) traceback.print_exc(file = sys.stdout)
def skein_monitor(self): def skein_monitor(self):
while(not self.stopsf): while not self.stopsf:
try: try:
wx.CallAfter(self.statusbar.SetStatusText, _("Slicing..."))#+self.cout.getvalue().split("\n")[-1]) wx.CallAfter(self.statusbar.SetStatusText, _("Slicing..."))#+self.cout.getvalue().split("\n")[-1])
except: except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment