summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/util.py')
-rw-r--r--src/leap/bitmask/util.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/bitmask/util.py b/src/leap/bitmask/util.py
index 3a99e13..9120fc4 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: