Skip to content

Commit

Permalink
fixup! FileReader: Normalize base path and strip it from normalized s…
Browse files Browse the repository at this point in the history
…ource paths
  • Loading branch information
cameel committed Jul 6, 2021
1 parent c1d012b commit 46ac037
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/path-resolution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ This ensures that the result is predictable and as platform-independent as possi
directory tree on the same drive.

Once canonicalized, the base path is stripped from all source file paths that start with it.
If the base path is empty, it is treated as if it was equal to the path to the current working directory.
If the base path is empty (e.g. if it is not explicitly provided), it is treated as if it was equal
to the path to the current working directory with all symbolic links resolved.
The result becomes the source unit name.

.. index:: ! remapping; import, ! import; remapping, ! remapping; context, ! remapping; prefix, ! remapping; target
Expand Down

0 comments on commit 46ac037

Please sign in to comment.