def getFirstTranslatorFileNameUnmodified(fileName):
 if (fileName != ''):
  return fileName
 unmodified = getGNUTranslatorFilesUnmodified()
 if (len(unmodified) == 0):
  print 'There are no unmodified gcode files in this folder.'
  return ''
 return unmodified[0]

def getFirstTranslatorFileNameUnmodified ( fileName ) : if ( fileName != '' ) : return fileName unmodified = getGNUTranslatorFilesUnmodified ( ) if ( len ( unmodified ) == 0 ) : print 'There are no unmodified gcode files in this folder.' return '' return unmodified [ 0 ]
get the first file name from the translators in the import plugins folder .