我们从Python开源项目中,提取了以下2个代码示例,用于说明如何使用settings.init()。
def __init__(self, **kwargs): settings.init() self.set_brightness(settings.brightness) super(SettingsScreen, self).__init__(**kwargs)
def setUp(self): print("Unittest setUP") # Setup the logger # settings.init() # settings.logger_Sart("unittest.log", True) # logger.setLevel(logging.DEBUG)