OP-2414 - explicit cast to str

f might be pathlib.Path, replace with 2 arguments is only for str
This commit is contained in:
Petr Kalis 2022-02-10 12:58:14 +01:00
parent 041c2aa240
commit 1617b5253c

View file

@ -570,7 +570,7 @@ class AbstractSubmitDeadline(pyblish.api.InstancePlugin):
new_exp = []
for f in exp:
new_exp.append(
f.replace(orig_scene, new_scene)
str(f).replace(orig_scene, new_scene)
)
self._instance.data["expectedFiles"] = new_exp