Skip to content

Commit

Permalink
Log relative paths of libraries in root_path.
Browse files Browse the repository at this point in the history
Makes the logs a little easier to read.
  • Loading branch information
HexDecimal committed Jan 20, 2021
1 parent caf8e1f commit 759e486
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions delocate/delocating.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def delocate_tree_libs(
# Copy libraries outside of root_path to lib_path.
for old_path in copied_libs:
new_path = realpath(pjoin(lib_path, basename(old_path)))
logger.info("Copying library %s", old_path)
logger.info(
"Copying library %s to %s", old_path, relpath(new_path, root_path)
)
shutil.copy(old_path, new_path)
# Delocate this file now that it is stored locally.
delocated_libs.add(new_path)
Expand All @@ -120,7 +122,7 @@ def delocate_tree_libs(
new_install_name = '@loader_path/' + req_rel
logger.info(
"Modifying install name in %s from %s to %s",
requiring,
relpath(requiring, root_path),
orig_install_name,
new_install_name,
)
Expand Down

0 comments on commit 759e486

Please sign in to comment.