Merge pull request #903 from BigRoy/enhancement/integrator_log_full_path_filename

Integrator: Log the filepath if invalidated for being fullpath for clearer log
This commit is contained in:
Jakub Trllo 2024-09-30 13:11:16 +02:00 committed by GitHub
commit 0c35ccc296
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -509,8 +509,11 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
if not is_sequence_representation:
files = [files]
if any(os.path.isabs(fname) for fname in files):
raise KnownPublishError("Given file names contain full paths")
for fname in files:
if os.path.isabs(fname):
raise KnownPublishError(
f"Representation file names contains full paths: {fname}"
)
if not is_sequence_representation:
return