8000 bpo-41661: Document os.path.relpath() exception on Windows with diffe… · python/cpython@b570fea · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit b570fea

Browse files
bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346) (#25367)
(cherry picked from commit 67c0b3d) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent 2760a67 commit b570fea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/os.path.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ the :mod:`glob` module.)
366366
Return a relative filepath to *path* either from the current directory or
367367
from an optional *start* directory. This is a path computation: the
368368
filesystem is not accessed to confirm the existence or nature of *path* or
369-
*start*.
369+
*start*. On Windows, :exc:`ValueError` is raised when *path* and *start*
370+
are on different drives.
370371

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

0 commit comments

Comments
 (0)
0