def removeGcodeFile(gcodeFilePath):
 if ('alterations' not in gcodeFilePath):
  os.remove(gcodeFilePath)
  print ('removeGeneratedFiles deleted ' + gcodeFilePath)
  return
 if ('example_' not in gcodeFilePath):
  os.remove(gcodeFilePath)
  print ('removeGeneratedFiles deleted ' + gcodeFilePath)

def removeGcodeFile ( gcodeFilePath ) : if ( 'alterations' not in gcodeFilePath ) : os . remove ( gcodeFilePath ) print ( 'removeGeneratedFiles deleted ' + gcodeFilePath ) return if ( 'example_' not in gcodeFilePath ) : os . remove ( gcodeFilePath ) print ( 'removeGeneratedFiles deleted ' + gcodeFilePath )
remove gcode file .