mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
code tweaks - big roy's comment
This commit is contained in:
parent
e4ea0ab94e
commit
869d336519
1 changed files with 4 additions and 5 deletions
|
|
@ -624,10 +624,9 @@ def version_up_current_workfile():
|
||||||
|
|
||||||
work_root = work_template["directory"].format_strict(data)
|
work_root = work_template["directory"].format_strict(data)
|
||||||
file_template = work_template["file"].template
|
file_template = work_template["file"].template
|
||||||
last_workfile_path = get_last_workfile(
|
workfile_path = get_last_workfile(
|
||||||
work_root, file_template, data, extensions, True
|
work_root, file_template, data, extensions, True
|
||||||
)
|
)
|
||||||
new_workfile_path = version_up(last_workfile_path)
|
if os.path.exists(workfile_path):
|
||||||
if os.path.exists(new_workfile_path):
|
workfile_path = version_up(workfile_path)
|
||||||
new_workfile_path = version_up(new_workfile_path)
|
host.save_workfile(workfile_path)
|
||||||
host.save_workfile(new_workfile_path)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue