(self)
Load settings from a file.

        .. NOTE::

            Settings are located in
            ``$XDG_CONFIG_HOME/rivalcfg/<vendor_id>_<product_id>.device.json``.
Load settings from a file.
Load settings from a file .
def _load(self):
        """Load settings from a file.

        .. NOTE::

            Settings are located in
            ``$XDG_CONFIG_HOME/rivalcfg/<vendor_id>_<product_id>.device.json``.
        """
        if os.path.isfile(self._settings_path):
            with open(self._settings_path, "r") as file_:
                self._settings = json.load(file_)
        else:
            self._settings = {
                "default": self.get_default_values(),
            }
def _load ( self ) : if os . path . isfile ( self . _settings_path ) : with open ( self . _settings_path , "r" ) as file_ : self . _settings = json . load ( file_ ) else : self . _settings = { "default" : self . get_default_values ( ) , }