Skip to content

Commit

Permalink
OS X bundling puts it all into one file, which is extracted. We need …
Browse files Browse the repository at this point in the history
…to make sure the script knows of the actual path
  • Loading branch information
blitzmann committed Nov 26, 2017
1 parent 7d46d7e commit 8850da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8850da6

Please sign in to comment.