summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/posixpat.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-02-09 18:40:13 (GMT)
committerGuido van Rossum <guido@python.org>1999-02-09 18:40:13 (GMT)
commit2e7840fe8fdb52b8d026017237593b445ebf9059 (patch)
treea7ee5115e9bdeb27b450c61b61aabe5c8144d491 /Lib/dos-8x3/posixpat.py
parent01b7ced83452b733c4db004307292493c9dd6d73 (diff)
downloadcpython-2e7840fe8fdb52b8d026017237593b445ebf9059.zip
cpython-2e7840fe8fdb52b8d026017237593b445ebf9059.tar.gz
cpython-2e7840fe8fdb52b8d026017237593b445ebf9059.tar.bz2
The usual.
Diffstat (limited to 'Lib/dos-8x3/posixpat.py')
-rwxr-xr-xLib/dos-8x3/posixpat.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/dos-8x3/posixpat.py b/Lib/dos-8x3/posixpat.py
index fb3b6a6..36edc80 100755
--- a/Lib/dos-8x3/posixpat.py
+++ b/Lib/dos-8x3/posixpat.py
@@ -367,3 +367,10 @@ def normpath(path):
if not comps and not slashes:
comps.append('.')
return slashes + string.joinfields(comps, '/')
+
+
+# Return an absolute path.
+def abspath(path):
+ if not isabs(path):
+ path = join(os.getcwd(), path)
+ return normpath(path)