Merge pull request #2633 from PySimpleGUI/Dev-latest

Fixed how args are built with lists
This commit is contained in:
PySimpleGUI 2020-02-24 14:54:02 -05:00 committed by GitHub
commit 801d27b3c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -13068,9 +13068,11 @@ def _process_thread(*args):
global __shell_process__ global __shell_process__
# start running the command with arugments # start running the command with arugments
print(f'running args = {args}')
try: try:
__shell_process__ = run(args, shell=True, stdout=PIPE) __shell_process__ = run(args, shell=True, stdout=PIPE)
except: except Exception as e:
print(f'Exception running process args = {args}')
__shell_process__ = None __shell_process__ = None
@ -13101,7 +13103,9 @@ def shell_with_animation(command, args=None, image_source=DEFAULT_BASE64_LOADING
real_args = [command] real_args = [command]
if args is not None: 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 = Thread(target=_process_thread, args=real_args, daemon=True)
thread.start() thread.start()