Fix bug in loadfile() causing file not to be closed

master
Guillaume Seguin 2012-08-04 22:54:12 +02:00
parent 3ba713e5d0
commit e046dc8016
1 changed files with 1 additions and 1 deletions

View File

@ -1499,7 +1499,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.filename=self.filename.replace(".stl","_export.gcode").replace(".STL","_export.gcode").replace(".obj","_export.gcode").replace(".OBJ","_export.gcode")
of=open(self.filename)
self.f=[i.replace("\n","").replace("\r","") for i in of]
of.close
of.close()
if self.p.online:
wx.CallAfter(self.printbtn.Enable)