Searched refs:preferred_version (Results 1 – 3 of 3) sorted by relevance
/tools/asuite/aidegen/lib/ |
D | config.py | 90 def preferred_version(self, ide=None): member in AidegenConfig 103 preferred_version = self._config.get(key, '') 105 if not preferred_version: 106 preferred_version = self._config.get(self._KEY_APPEND, '') 108 if preferred_version: 109 real_version = os.path.realpath(preferred_version) 111 return preferred_version 114 return preferred_version 117 def set_preferred_version(self, preferred_version, ide=None): argument 127 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)
|