summaryrefslogtreecommitdiffstats
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r--Lib/posixpath.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index 73e380c..05cc92a 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):