filename = os.path.basename(profile.getPreference('lastFile'))
filename = filename[0:filename.rfind('.')] + '.gcode'
shutil.copy(self._slicer.getGCodeFilename(), drive[1] + filename)
+ self.notification.message("Saved as %s" % (drive[1] + filename))
else:
defPath = profile.getPreference('lastFile')
defPath = defPath[0:defPath.rfind('.')] + '.gcode'
dlg.Destroy()
shutil.copy(self._slicer.getGCodeFilename(), filename)
+ self.notification.message("Saved as %s" % (filename))
def OnToolSelect(self, button):
if self.rotateToolButton.getSelected():