def __init__(self, args, config): """Init the Outdated class""" self.args = args self.config = config self.cache_dir = user_cache_dir() self.cache_file = os.path.join(self.cache_dir, 'glances-version.db') # Set default value... self.data = { u'installed_version': __version__, u'latest_version': '0.0', u'refresh_date': datetime.now() } # Read the configuration file self.load_config(config) logger.debug("Check Glances version up-to-date: {}".format(not self.args.disable_check_update)) # And update ! self.get_pypi_version()