mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Update openpype/hosts/maya/startup/userSetup.py
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
19458f25d0
commit
bc004453ed
1 changed files with 3 additions and 2 deletions
|
|
@ -38,8 +38,9 @@ if settings["maya"]["explicit_plugins_loading"]["enabled"]:
|
|||
key = "OPENPYPE_OPEN_WORKFILE_POST_INITIALIZATION"
|
||||
if bool(int(os.environ.get(key, "0"))):
|
||||
def _log_and_open():
|
||||
print("Opening \"{}\"".format(os.environ["AVALON_LAST_WORKFILE"]))
|
||||
cmds.file(os.environ["AVALON_LAST_WORKFILE"], open=True, force=True)
|
||||
path = os.environ["AVALON_LAST_WORKFILE"]
|
||||
print("Opening \"{}\"".format(path))
|
||||
cmds.file(path, open=True, force=True)
|
||||
cmds.evalDeferred(
|
||||
_log_and_open,
|
||||
lowestPriority=True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue