Skipping update check when running from sources

This commit is contained in:
Manuel Cortez 2019-08-19 10:02:05 -05:00
parent c80ca295c6
commit ac7ef77a8d

View File

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys
import application import application
import platform import platform
import logging import logging
@ -9,6 +10,9 @@ from .wxUpdater import *
logger = logging.getLogger("updater") logger = logging.getLogger("updater")
def do_update(update_type="stable"): 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": if update_type == "stable":
endpoint = application.update_stable_url endpoint = application.update_stable_url
version = application.version version = application.version