From 4d8e63e890e88c58feb750dd56ecbf60bed9b462 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Tue, 27 Sep 2016 14:18:57 -0400 Subject: [feature] launch backend from the qt gui entrypoint --- src/leap/bitmask/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/leap/bitmask/util.py') diff --git a/src/leap/bitmask/util.py b/src/leap/bitmask/util.py index 3a99e13c..9120fc40 100644 --- a/src/leap/bitmask/util.py +++ b/src/leap/bitmask/util.py @@ -25,11 +25,12 @@ from twisted.python import log from leap.common.files import which - STANDALONE = getattr(sys, 'frozen', False) def here(module=None): + global STANDALONE + if STANDALONE: # we are running in a |PyInstaller| bundle return sys._MEIPASS @@ -48,6 +49,7 @@ def get_gpg_bin_path(): :returns: the gpg binary path :rtype: str """ + global STANDALONE gpgbin = None if STANDALONE: -- cgit v1.2.3