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 1
1
import json
2
+ import platform
2
3
import os
3
4
from socket import socket
4
5
from subprocess import Popen , PIPE
@@ -144,4 +145,8 @@ def _get_command():
144
145
if os .getenv ("GPTSCRIPT_BIN" ) is not None :
145
146
return os .getenv ("GPTSCRIPT_BIN" )
146
147
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" }
12
12
dependencies = [
13
13
" certifi==2024.2.2" ,
14
14
" charset-normalizer==3.3.2" ,
15
+ " httpx==0.27.0" ,
15
16
" idna==3.6" ,
16
17
" requests==2.31.0" ,
17
18
" tqdm==4.66.2" ,
You can’t perform that action at this time.
0 commit comments