From 67c0b3d89c4da9750fdb43fc66d3924681b22d2e Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Mon, 12 Apr 2021 09:39:31 -0600 Subject: bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346) --- Doc/library/os.path.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index e2f335e..4cab311 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -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`. -- cgit v0.12