mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
add splitdrive()
This commit is contained in:
parent
971ee13835
commit
221df24940
1 changed files with 7 additions and 0 deletions
|
@ -74,6 +74,13 @@ def splitext(p):
|
||||||
return root, ext
|
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.
|
# Return the tail (basename) part of a path.
|
||||||
|
|
||||||
def basename(p):
|
def basename(p):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue