From 9f0159c5466e274963b2ee8aea443cf161ef37e3 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 24 Feb 2020 14:53:34 -0500 Subject: [PATCH] Fixed how args are built with lists --- PySimpleGUI.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 42f77ba2..ed554f9a 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -13068,9 +13068,11 @@ def _process_thread(*args): global __shell_process__ # start running the command with arugments + print(f'running args = {args}') try: __shell_process__ = run(args, shell=True, stdout=PIPE) - except: + except Exception as e: + print(f'Exception running process args = {args}') __shell_process__ = None @@ -13101,7 +13103,9 @@ def shell_with_animation(command, args=None, image_source=DEFAULT_BASE64_LOADING real_args = [command] if args is not None: - real_args.append(args) + for arg in args: + real_args.append(arg) + # real_args.append(args) thread = Thread(target=_process_thread, args=real_args, daemon=True) thread.start()