Simplified fill_root logic

I must be wrong in my previous tests, it works even this simple way.
This commit is contained in:
Petr Kalis 2025-04-24 12:09:54 +02:00
parent e9d3462da2
commit 5410d69ad2

View file

@ -1005,13 +1005,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
hole_fpath = os.path.join(staging_dir, col_format % frame)
previous_version_path = prev_col_format % frame
# limits too large padding coming from Anatomy
previous_version_path = (
os.path.join(
anatomy.fill_root(os.path.dirname(previous_version_path)),
os.path.basename(previous_version_path)
)
)
previous_version_path = anatomy.fill_root(previous_version_path)
if not os.path.exists(previous_version_path):
self.log.warning(
"Missing frame should be replaced from "