From: Guido van Rossum Date: Mon, 7 Aug 1995 20:17:55 +0000 (+0000) Subject: add splitdrive() X-Git-Tag: v1.3b1~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=221df24940595eb9d99d598e39fd2967050bee11;p=thirdparty%2FPython%2Fcpython.git add splitdrive() --- diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 73e380cec0da..05cc92ae2f69 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -74,6 +74,13 @@ def splitext(p): return root, ext +# Split a pathname into a drive specification and the rest of the +# path. Useful on DOS/Windows/NT; on Unix, the drive is always empty. + +def splitdrive(p): + return '', p + + # Return the tail (basename) part of a path. def basename(p):