def configure(self): # asks all the questions for question, section, option, dic in self.options: if "when" in dic: wsec, wopt = dic["when"] if not CONFIG.isTrue(wsec, wopt): continue if "unless" in dic: usec, uopt = dic["unless"] if CONFIG.isTrue(usec, uopt): continue gstype = None if "type" in dic: gstype = dic["type"] utils.getSetConfigType(question, section, option, gstype) self.postConfigure() # save the answers CONFIG.writeIni()