Tries to invoke a command line tool Returns false if the program exited with a non-zero error code or if the program failed to be executed.
(params)
| 21 | |
| 22 | |
| 23 | def try_call(params): |
| 24 | ''' |
| 25 | Tries to invoke a command line tool |
| 26 | Returns false if the program exited with a non-zero error code or if the program failed to be executed. |
| 27 | ''' |
| 28 | try: |
| 29 | subprocess.check_call(params) |
| 30 | return True |
| 31 | except Exception as e: |
| 32 | print(e) |
| 33 | return False |
| 34 | |
| 35 | |
| 36 | def window_manager() -> str: |