(self)
| 22 | self.ui = ui |
| 23 | |
| 24 | def start(self) -> None: |
| 25 | if self.ui: |
| 26 | self.logger.info(f"{self.name} will be started with ui!") |
| 27 | subprocess.check_call(f"/usr/bin/xterm -T {self.name} -n {self.name} " |
| 28 | f"-e '{self.command} {self.additional_args}'", shell=True) |
| 29 | else: |
| 30 | self.logger.info(f"{self.name} will be started without ui!") |
| 31 | subprocess.check_call(f"{self.command} {self.additional_args}", shell=True) |
| 32 | |
| 33 | def __repr__(self) -> str: |
| 34 | return "Application(name={n}, command={c}, args={args}, ui={ui})".format( |
no outgoing calls
no test coverage detected