Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-41661: Document os.path.relpath() exception on Windows with diffe…
…rent drives (GH-25346)

(cherry picked from commit 67c0b3d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
  • Loading branch information
ZackerySpytz authored and miss-islington committed Apr 12, 2021
commit 863ef82cc1184bc8d0e998d036df51466f1e059c
3 changes: 2 additions & 1 deletion Doc/library/os.path.rst
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ the :mod:`glob` module.)
Return a relative filepath to *path* either from the current directory or
from an optional *start* directory. This is a path computation: the
filesystem is not accessed to confirm the existence or nature of *path* or
*start*.
*start*. On Windows, :exc:`ValueError` is raised when *path* and *start*
are on different drives.

*start* defaults to :attr:`os.curdir`.

Expand Down