Skip to content

Commit 2a7d7ac

Browse files
committed
Support updating linux bundle
1 parent eab63c6 commit 2a7d7ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

update.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ def update():
1616
else:
1717
source_path = os.getcwd().rstrip("/")
1818

19-
runtime_path = os.path.dirname(sys.executable)
19+
if config.dist_type.startswith("bundle_linux"):
20+
runtime_path = os.path.normpath(os.path.dirname(sys.executable) + "/../..")
21+
else:
22+
runtime_path = os.path.dirname(sys.executable)
2023

2124
updatesite_path = config.data_dir + "/" + config.updatesite
2225

0 commit comments

Comments
 (0)