Fix not removing absolute path in Maya DL submission

This occured only in Maya (or DCC with AOV), caused pasting whole absolute path to metadata.json which could caused `Given file names contain full paths` (if ValidateExpectedFiles was disabled).
'files' is expecting only file names, not full path.
This commit is contained in:
Petr Kalis 2024-09-23 15:17:47 +02:00
parent d00fa72892
commit ffd5482018

View file

@ -788,6 +788,11 @@ def _create_instances_for_aov(instance, skeleton, aov_filter, additional_data,
colorspace = product.colorspace
break
if isinstance(files, (list, tuple)):
files = [os.path.basename(f) for f in files]
else:
files = os.path.basename(files)
rep = {
"name": ext,
"ext": ext,