Searched refs:preferred_version (Results 1 – 3 of 3) sorted by relevance
/tools/asuite/aidegen/lib/ |
D | config.py | 89 def preferred_version(self, ide=None): member in AidegenConfig 102 preferred_version = self._config.get(key, '') 104 if not preferred_version: 105 preferred_version = self._config.get(self._KEY_APPEND, '') 107 if preferred_version: 108 real_version = os.path.realpath(preferred_version) 110 return preferred_version 113 return preferred_version 116 def set_preferred_version(self, preferred_version, ide=None): argument 126 self._config[key] = preferred_version
|
D | config_unittest.py | 283 self.assertEqual(cfg.preferred_version(), None) 288 self.assertEqual(cfg.preferred_version(constant.IDE_INTELLIJ), result) 289 self.assertEqual(cfg.preferred_version(result), None) 291 self.assertEqual(cfg.preferred_version(constant.IDE_INTELLIJ), None) 295 self.assertEqual(cfg.preferred_version(), 'a') 297 self.assertEqual(cfg.preferred_version(), None)
|
D | ide_util.py | 390 if not self._config_reset and (conf.preferred_version(self.ide_name) 392 return conf.preferred_version(self.ide_name) 400 return conf.preferred_version(self.ide_name)
|