Mac OSX portable mode path

Fixes #150
This commit is contained in:
mailchuck 2015-12-21 21:24:06 +01:00
parent b28631e40c
commit d2e107b53c
Signed by untrusted user who does not match committer: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -207,7 +207,11 @@ def assembleErrorMessage(fatal=0, banTime=0, inventoryVector='', errorText=''):
def lookupExeFolder():
if frozen:
exeFolder = path.dirname(sys.executable) + path.sep
if frozen == "macosx_app":
# targetdir/Bitmessage.app/Contents/MacOS/Bitmessage
exeFolder = path.dirname(path.dirname(path.dirname(path.dirname(sys.executable)))) + path.sep
else:
exeFolder = path.dirname(sys.executable) + path.sep
elif __file__:
exeFolder = path.dirname(__file__) + path.sep
else: