more robust files check

This commit is contained in:
Milan Kolar 2020-10-15 14:12:12 +02:00
parent 866d18e472
commit 5015c90bda

View file

@ -69,9 +69,15 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
"name": "thumbnail" # Default component name is "main".
}
comp['thumbnail'] = True
if not comp.get("published_path"):
comp['published_path'] = os.path.join(comp['stagingDir'],
comp["files"])
comp_files = comp["files"]
if isinstance(comp_files, (tuple, list, set)):
filename = comp_files[0]
else:
filename = comp_files
comp['published_path'] = os.path.join(
comp['stagingDir'], filename
)
elif comp.get('ftrackreview') or ("ftrackreview" in comp.get('tags', [])):
'''