def __init__(self, args=None, config=None): """Init the plugin.""" super(Plugin, self).__init__(args=args, stats_init_value=[]) self.args = args self.config = config # We want to display the stat in the curse interface self.display_curse = True # Init stats self.glances_folders = glancesFolderList(config)
def __init__(self, args=None, config=None): """Init the plugin.""" super(Plugin, self).__init__(args=args, config=config, stats_init_value=[]) self.args = args self.config = config # We want to display the stat in the curse interface self.display_curse = True # Init stats self.glances_folders = glancesFolderList(config)
def load_limits(self, config): """Load the foldered list from the config file, if it exists.""" self.glances_folders = glancesFolderList(config)