From ac7ef77a8dabec7219240de94d0b2b443a9243a1 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Mon, 19 Aug 2019 10:02:05 -0500 Subject: [PATCH] Skipping update check when running from sources --- src/update/updater.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/update/updater.py b/src/update/updater.py index 9689741..8fb1af4 100644 --- a/src/update/updater.py +++ b/src/update/updater.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +import sys import application import platform import logging @@ -9,6 +10,9 @@ from .wxUpdater import * logger = logging.getLogger("updater") def do_update(update_type="stable"): + # Updates cannot be performed in the source code version of Socializer. + if hasattr(sys, "frozen") == False: + return if update_type == "stable": endpoint = application.update_stable_url version = application.version