Commit 77149a22 authored by kliment's avatar kliment

Load gcode file with same name as stl file (no _export)

parent 929c2450
......@@ -680,6 +680,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
fn=self.filename
try:
self.filename=self.filename.replace(".stl","_export.gcode")
if not os.file.exists(self.filename):
self.filename.replace("_export","")
self.f=[i.replace("\n","").replace("\r","") for i in open(self.filename)]
if self.p.online:
wx.CallAfter(self.printbtn.Enable)
......
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