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

View file

@ -16,7 +16,10 @@ def update():
else: else:
source_path = os.getcwd().rstrip("/") 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 updatesite_path = config.data_dir + "/" + config.updatesite