mirror of https://github.com/Syncplay/syncplay
Correct resourcesPath for frozen macOS app
This commit is contained in:
parent
2093ca14c1
commit
777e046ae1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue