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()