mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
jiri's comment
This commit is contained in:
parent
e4fcc033a9
commit
b150e0b6a1
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ def open_file(filepath):
|
|||
nuke.scriptClear()
|
||||
headless = QtWidgets.QApplication.instance() is None
|
||||
if not headless:
|
||||
autosave = "{}.autosave".format(filepath)
|
||||
autosave = nuke.toNode("preferences")["AutoSaveName"].evaluate()
|
||||
autosave_prmpt = "Autosave detected.\nWould you like to load the autosave file?" # noqa
|
||||
if os.path.isfile(autosave) and nuke.ask(autosave_prmpt):
|
||||
filepath = autosave
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue