def getFileOrDirectoryTypesUnmodifiedGcode( fileName, fileTypes, wasCancelled ): "Get the gcode files in the directory the file is in if directory setting is true. Otherwise, return the file in a list." if isEmptyOrCancelled( fileName, wasCancelled ): return [] if isDirectorySetting(): return gcodec.getFilesWithFileTypesWithoutWords( fileTypes, [], fileName ) + gcodec.getUnmodifiedGCodeFiles(fileName) return [ fileName ]
def getFileOrDirectoryTypesUnmodifiedGcode(fileName, fileTypes, wasCancelled): "Get the gcode files in the directory the file is in if directory setting is true. Otherwise, return the file in a list." if isEmptyOrCancelled(fileName, wasCancelled): return [] if isDirectorySetting(): return gcodec.getFilesWithFileTypesWithoutWords( fileTypes, [], fileName) + gcodec.getUnmodifiedGCodeFiles(fileName) return [fileName]
def getGNUTranslatorFilesUnmodified(): "Get the file types from the translators in the import plugins folder." return gcodec.getFilesWithFileTypesWithoutWords( getImportPluginFileNames()) + [gcodec.getUnmodifiedGCodeFiles()]
def getGNUTranslatorFilesUnmodified(): "Get the file types from the translators in the import plugins folder." return gcodec.getFilesWithFileTypesWithoutWords( getImportPluginFileNames() ) + [ gcodec.getUnmodifiedGCodeFiles() ]