From c27485bb75da9743d75700cf1b3c0f7807b21b7a Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Mon, 12 Mar 2018 09:28:21 -0600 Subject: [PATCH] Apply fixes for Python 2 only is sys.frozen is True --- src/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 70cf2e4..d2baf49 100644 --- a/src/main.py +++ b/src/main.py @@ -2,8 +2,9 @@ from __future__ import unicode_literals # at top of module import sys if sys.version[0] == "2": - import fixes - fixes.setup() + if hasattr(sys, "frozen"): + import fixes + fixes.setup() import i18n i18n.setup() import widgetUtils