Beispiel #1
0
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 archive.getFilesWithFileTypesWithoutWords(fileTypes, [], fileName)
	return [fileName]
Beispiel #2
0
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 archive.getFilesWithFileTypesWithoutWords(fileTypes, [], fileName)
	return [fileName]
Beispiel #3
0
def getGNUTranslatorFilesUnmodified():
	"Get the file types from the translators in the import plugins folder."
	return archive.getFilesWithFileTypesWithoutWords(getImportPluginFileNames())
Beispiel #4
0
def getGNUTranslatorFilesUnmodified():
    "Get the file types from the translators in the import plugins folder."
    return archive.getFilesWithFileTypesWithoutWords(
        getImportPluginFileNames())