def __init__(self, bmp_file, filepath): self.bmp_file = bmp_file if sys.platform == 'win32': self.filepath = filepath.encode(utils.get_system_encoding()) else: self.filepath = filepath self.run()
def __init__(self, grouper, filepath): self.grouper = grouper if sys.platform == 'win32': self.filepath = filepath.encode(utils.get_system_encoding()) else: self.filepath = filepath self.run()