From 711ec584191030e1a450c3b3203bff56615039a5 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 26 Nov 2019 08:28:12 -0600 Subject: [PATCH] Modified code se so updates will work properly for the next Socializer alpha stuff --- src/update/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/update/update.py b/src/update/update.py index 599f539..e10c91f 100644 --- a/src/update/update.py +++ b/src/update/update.py @@ -75,7 +75,8 @@ def find_version_data(update_type, current_version, available_update): return (False, False, False) available_description = available_update["message"] # ToDo: simplify this so it can be reused in other projects. - if sys.version[0] == "3": + import application + if application.is_pyinstaller(): update_url = "https://code.manuelcortez.net/manuelcortez/socializer/-/jobs/artifacts/master/raw/socializer.zip?job=alpha_python3" else: update_url = "https://code.manuelcortez.net/manuelcortez/socializer/-/jobs/artifacts/master/raw/socializer.zip?job=alpha"