From 47234f9a64b4cee6a66310589acd49229bbe36f8 Mon Sep 17 00:00:00 2001 From: azurebluedawn <96113411+azurebluedawn@users.noreply.github.com> Date: Mon, 30 Mar 2026 16:04:36 +0200 Subject: [PATCH] Replace subprocess.call with os.startfile for Windows --- scripts/iib/tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/iib/tool.py b/scripts/iib/tool.py index 7844f99..9916f3e 100755 --- a/scripts/iib/tool.py +++ b/scripts/iib/tool.py @@ -993,7 +993,7 @@ def open_file_with_default_app(file_path): if system == 'Darwin': # macOS subprocess.call(['open', file_path]) elif system == 'Windows': # Windows - subprocess.call(file_path, shell=True) + os.startfile(file_path) elif system == 'Linux': # Linux subprocess.call(['xdg-open', file_path]) else: @@ -1140,4 +1140,4 @@ def accumulate_streaming_response(resp: requests.Response) -> str: pass content_buffer += chunk_text - return content_buffer.strip() \ No newline at end of file + return content_buffer.strip()