def isSupportedFile(self, arg): return fileutil.getFiletype(arg) in [cl.ext for cl in self.optimizers]
def __init__(self, filename): self.filename = filename self.filetype = fileutil.getFiletype(filename) self.filesize = fileutil.getFilesize(filename)