From 8850da6cdb3af23bf9d18e7fd5bbe06e9cf0822e Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sat, 25 Nov 2017 20:11:05 -0500 Subject: [PATCH] OS X bundling puts it all into one file, which is extracted. We need to make sure the script knows of the actual path --- config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 082caae558..ed7420dad3 100644 --- a/config.py +++ b/config.py @@ -37,14 +37,14 @@ def isFrozen(): return True else: return False - - def __createDirs(path): if not os.path.exists(path): os.makedirs(path) def getPyfaRoot(): + if hasattr(sys, '_MEIPASS'): + return sys._MEIPASS base = getattr(sys.modules['__main__'], "__file__", sys.executable) if isFrozen() else __file__ root = os.path.dirname(os.path.realpath(os.path.abspath(base))) root = root