Skip to content
Myr

add url to page explaining win32 path prefixes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by chima · committed by chima · parent c7c2179 · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:src/click/types.py+3 added-2 removed
845 unmodified lines
846 rv = os.readlink(rv)847848 # absolute links849 if os.path.isabs(rv):850 # os.readlink prepends path prefixes to absolute links851 # in windows.850 # os.readlink prepends path prefixes to absolute851 # links in windows.852 # https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#win32-file-namespaces853 # Here we strip prefix from the resolved path854 rv_drive, rv_path = os.path.splitdrive(rv)855 stripped_rv_drive = rv_drive.split(os.path.sep)[-1]856 rv = os.path.join(stripped_rv_drive, rv_path)
214 unmodified lines