예제 #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 gcodec.getFilesWithFileTypesWithoutWords( fileTypes, [], fileName ) + gcodec.getUnmodifiedGCodeFiles(fileName)
	return [ fileName ]
예제 #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 gcodec.getFilesWithFileTypesWithoutWords(
            fileTypes, [], fileName) + gcodec.getUnmodifiedGCodeFiles(fileName)
    return [fileName]
예제 #3
0
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() ]