mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #3485 from pypeclub/bugfix/macos_plist_read
General: Fix Plist loading for application launch
This commit is contained in:
commit
e58d83e530
1 changed files with 5 additions and 1 deletions
|
|
@ -665,7 +665,11 @@ class ApplicationExecutable:
|
||||||
if os.path.exists(plist_filepath):
|
if os.path.exists(plist_filepath):
|
||||||
import plistlib
|
import plistlib
|
||||||
|
|
||||||
parsed_plist = plistlib.readPlist(plist_filepath)
|
if hasattr(plistlib, "load"):
|
||||||
|
with open(plist_filepath, "rb") as stream:
|
||||||
|
parsed_plist = plistlib.load(stream)
|
||||||
|
else:
|
||||||
|
parsed_plist = plistlib.readPlist(plist_filepath)
|
||||||
executable_filename = parsed_plist.get("CFBundleExecutable")
|
executable_filename = parsed_plist.get("CFBundleExecutable")
|
||||||
|
|
||||||
if executable_filename:
|
if executable_filename:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue