mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
use plist.load as plist.readPlist is deprecated
This commit is contained in:
parent
3b7a0a5bee
commit
620060b7d6
1 changed files with 5 additions and 1 deletions
|
|
@ -665,7 +665,11 @@ class ApplicationExecutable:
|
|||
if os.path.exists(plist_filepath):
|
||||
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")
|
||||
|
||||
if executable_filename:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue