OS X bundling puts it all into one file, which is extracted. We need to make sure the script knows of the actual path

This commit is contained in:
blitzmann
2017-11-25 20:11:05 -05:00
parent 7d46d7e22d
commit 8850da6cdb

View File

@@ -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