From d2e107b53c0f414f5ede4496b11d44ae81240dfc Mon Sep 17 00:00:00 2001 From: mailchuck Date: Mon, 21 Dec 2015 21:24:06 +0100 Subject: [PATCH] Mac OSX portable mode path Fixes #150 --- src/shared.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/shared.py b/src/shared.py index 0fbe36e3..12ca77b3 100644 --- a/src/shared.py +++ b/src/shared.py @@ -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: