Skip to content

Commit

Permalink
Log path we're making paths relative to
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Oct 28, 2024
1 parent e69ae92 commit ea04ebe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def process(self, instance):
ext=representation.get("ext")
)
published_path_root = os.path.dirname(published_path)
self.log.debug(
f"Making USD paths relative to {published_path_root}")

# Process all files of the representation
staging_dir: str = representation.get(
Expand All @@ -72,7 +74,7 @@ def process(self, instance):
if isinstance(filenames, str):
# Single file is stored as `str` in `instance.data["files"]`
filenames = [filenames]

filenames: "list[str]"
for filename in filenames:
path = os.path.join(staging_dir, filename)
Expand Down

0 comments on commit ea04ebe

Please sign in to comment.