iconfile = None for name in self.cfg.sections(): if self.cfg.get (name, "type") == "STANDALONE": try: iconfile = self.cfg.get (name, "iconfile") except: pass if iconfile: from icon import CopyIcons CopyIcons (myexe, iconfile)
More...
iconfile = None for name in self.cfg.sections(): if self.cfg.get (name, "type") == "STANDALONE": try: iconfile = self.cfg.get (name, "iconfile") except: pass if iconfile: from icon import CopyIcons CopyIcons (myexe, iconfile)