def __init__(self, abcpath): self.abcpath = abcpath # Find the directory to save config files, etc. self.setupConfigPath() moveOldConfigFiles(self) self.setupConfig() # Setup language files self.lang = Lang(self) # Convert old INI file convertINI(self) # Make torrent directory (if needed) self.MakeTorrentDir() self.setupWebConfig() self.setupTorrentMakerConfig() self.setupTorrentList() self.torrents = { "all": [], "active": {}, "inactive": {}, "pause": {}, "seeding": {}, "downloading": {} } self.accessflag = Event() self.accessflag.set() self.invalidwinfilenamechar = '' for i in range(32): self.invalidwinfilenamechar += chr(i) self.invalidwinfilenamechar += '"*/:<>?\\|' self.FILESEM = Semaphore(1) if (sys.platform == 'win32'): self.regchecker = RegChecker(self) self.lastdir = { "save" : self.config.Read('defaultfolder'), "open" : "", "log": "" } # Is ABC in the process of shutting down? self.abcquitting = False # self.abcdonequitting = False # Keep track of the last tab that was being viewed self.lasttab = { "advanced" : 0, "preferences" : 0 } self.languages = {} # Keep track of all the "ManagedList" objects in use self.lists = {}
def __init__(self, utility): self.utility = utility self.utility.guiman = self self.maxid = 26 self.active = [] convertINI(utility) self.getColumnData()