From 68b5272bb6aa5c6db425527a37fdecaaf432525c Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Thu, 27 Oct 2022 15:54:58 -0400 Subject: [PATCH] Added handling of multiple arguments --- DemoPrograms/Demo_Script_Launcher_Realtime_Output.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DemoPrograms/Demo_Script_Launcher_Realtime_Output.py b/DemoPrograms/Demo_Script_Launcher_Realtime_Output.py index 971901a1..8d2ea58b 100644 --- a/DemoPrograms/Demo_Script_Launcher_Realtime_Output.py +++ b/DemoPrograms/Demo_Script_Launcher_Realtime_Output.py @@ -21,7 +21,8 @@ def main(): if event in (sg.WIN_CLOSED, 'Exit'): break elif event == 'Run': - sp = sg.execute_command_subprocess(values['-IN-'], pipe_output=True, wait=False) + cmd_list = values['-IN-'].split(' ') + sp = sg.execute_command_subprocess(cmd_list[0], *cmd_list[1:], pipe_output=True, wait=False) results = sg.execute_get_results(sp, timeout=1) print(results[0])