File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11import json
2+ import platform
23import os
34from socket import socket
45from subprocess import Popen , PIPE
@@ -144,4 +145,8 @@ def _get_command():
144145 if os .getenv ("GPTSCRIPT_BIN" ) is not None :
145146 return os .getenv ("GPTSCRIPT_BIN" )
146147
147- return os .path .join (os .path .dirname (executable ), "gptscript" )
148+ bin_path = os .path .join (os .path .dirname (executable ), "gptscript" )
149+ if platform .system () == "Windows" :
150+ bin_path += ".exe"
151+
152+ return bin_path if os .path .exists (bin_path ) else "gptscript"
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ license = { file = "LICENSE" }
1212dependencies = [
1313 " certifi==2024.2.2" ,
1414 " charset-normalizer==3.3.2" ,
15+ " httpx==0.27.0" ,
1516 " idna==3.6" ,
1617 " requests==2.31.0" ,
1718 " tqdm==4.66.2" ,
You can’t perform that action at this time.
0 commit comments