fix filename formatting in workflie load plugin

This commit is contained in:
Jakub Trllo 2024-04-10 11:18:28 +02:00
parent b3d7a233e4
commit 1a1826dbbf

View file

@ -1,6 +1,5 @@
import os
from ayon_core.lib import StringTemplate
from ayon_core.pipeline import (
registered_host,
get_current_context,
@ -111,8 +110,6 @@ class LoadWorkfile(plugin.Loader):
data["version"] = version
filename = StringTemplate.format_strict_template(
file_template, data
)
filename = work_template["file"].format_strict(data)
path = os.path.join(work_root, filename)
host.save_workfile(path)