Skip to content

Commit 67c0b3d

Browse files
authored
bpo-41661: Document os.path.relpath() exception on Windows with different drives (pythonGH-25346)
1 parent e126547 commit 67c0b3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/os.path.rst

+2-1
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)