def configure(self): c = self.absPath('config') if not os.path.exists(c): os.mkdir(c) if os.path.isdir(c): self.config = SYSTEMSTR2STR(c) else: self.config = None p = self.absPath('plugins') if not os.path.exists(p): os.mkdir(p) if os.path.isdir(p): if p not in sys.path: sys.path.insert(0, p) self.pluginPath = SYSTEMSTR2STR(p) else: self.pluginPath = None SetLogLevel(self.debug and 'DEBUG' or 'INFO')
def configure(self): SetLogLevel(self.debug and 'DEBUG' or 'INFO')
def configure(cls): SetLogLevel(cls.debug and 'DEBUG' or 'INFO')