Support updating linux bundle

This commit is contained in:
shortcutme 2019-09-04 20:15:49 +02:00
parent eab63c6af8
commit 2a7d7acce0
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,10 @@ def update():
else:
source_path = os.getcwd().rstrip("/")
runtime_path = os.path.dirname(sys.executable)
if config.dist_type.startswith("bundle_linux"):
runtime_path = os.path.normpath(os.path.dirname(sys.executable) + "/../..")
else:
runtime_path = os.path.dirname(sys.executable)
updatesite_path = config.data_dir + "/" + config.updatesite