From 777e046ae19203aafef301c20c10556267060031 Mon Sep 17 00:00:00 2001 From: albertosottile Date: Tue, 24 Apr 2018 17:57:33 +0200 Subject: [PATCH] Correct resourcesPath for frozen macOS app --- syncplay/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/syncplay/utils.py b/syncplay/utils.py index b04b6ca..1198b08 100755 --- a/syncplay/utils.py +++ b/syncplay/utils.py @@ -141,10 +141,8 @@ def findWorkingDir(): frozen = getattr(sys, 'frozen', '') if not frozen: path = os.path.dirname(os.path.dirname(__file__)) - elif frozen in ('dll', 'console_exe', 'windows_exe'): + elif frozen in ('dll', 'console_exe', 'windows_exe', 'macosx_app'): path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) - elif frozen in ('macosx_app'): - path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))) else: path = "" return path