(self)
| 89 | }) |
| 90 | |
| 91 | def is_initialized(self) -> bool: |
| 92 | import re |
| 93 | if os.path.exists(self.path_emulator_config): |
| 94 | self.logger.info("Config file exists") |
| 95 | with open(self.path_emulator_config, 'r') as f: |
| 96 | if any(re.match(r'hw\.device\.name ?= ?{}'.format(self.device), line) for line in f): |
| 97 | self.logger.info("Selected device is already created") |
| 98 | return True |
| 99 | else: |
| 100 | self.logger.info("Selected device is not created") |
| 101 | return False |
| 102 | |
| 103 | self.logger.info("Config file does not exist") |
| 104 | return False |
| 105 | |
| 106 | def _add_profile(self) -> None: |
| 107 | if "samsung" in self.device.lower(): |
no outgoing calls