Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67c0b3d

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)