mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
fix filename formatting in workflie load plugin
This commit is contained in:
parent
b3d7a233e4
commit
1a1826dbbf
1 changed files with 1 additions and 4 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from ayon_core.lib import StringTemplate
|
|
||||||
from ayon_core.pipeline import (
|
from ayon_core.pipeline import (
|
||||||
registered_host,
|
registered_host,
|
||||||
get_current_context,
|
get_current_context,
|
||||||
|
|
@ -111,8 +110,6 @@ class LoadWorkfile(plugin.Loader):
|
||||||
|
|
||||||
data["version"] = version
|
data["version"] = version
|
||||||
|
|
||||||
filename = StringTemplate.format_strict_template(
|
filename = work_template["file"].format_strict(data)
|
||||||
file_template, data
|
|
||||||
)
|
|
||||||
path = os.path.join(work_root, filename)
|
path = os.path.join(work_root, filename)
|
||||||
host.save_workfile(path)
|
host.save_workfile(path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue