add splitdrive()

This commit is contained in:
Guido van Rossum 1995-08-07 20:17:55 +00:00
parent 971ee13835
commit 221df24940
1 changed files with 7 additions and 0 deletions

View File

@ -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):