| 22192 | ##################################################################### |
| 22193 | |
| 22194 | def _process_thread(*args): |
| 22195 | global __shell_process__ |
| 22196 | |
| 22197 | # start running the command with arugments |
| 22198 | try: |
| 22199 | __shell_process__ = subprocess.run(args, shell=True, stdout=subprocess.PIPE) |
| 22200 | except Exception as e: |
| 22201 | print('Exception running process args = {}'.format(args)) |
| 22202 | __shell_process__ = None |
| 22203 | |
| 22204 | |
| 22205 | def shell_with_animation(command, args=None, image_source=DEFAULT_BASE64_LOADING_GIF, message=None, background_color=None, text_color=None, font=None, |