コード例 #1
0
ファイル: config.py プロジェクト: NbKevin/ArduinoYunAPI
 def sync(self):
     """Synchronise the config."""
     with open_and_save(self.config_path) as config:
         config['config'] = self._config
コード例 #2
0
ファイル: config.py プロジェクト: NbKevin/ArduinoYunAPI
 def load(self):
     """Load the config."""
     with open_and_save(self.config_path, save=False) as config:
         self._config = config['config']