diff options
author | Guido van Rossum <guido@python.org> | 1999-02-09 18:40:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-02-09 18:40:13 (GMT) |
commit | 2e7840fe8fdb52b8d026017237593b445ebf9059 (patch) | |
tree | a7ee5115e9bdeb27b450c61b61aabe5c8144d491 /Lib/dos-8x3/posixpat.py | |
parent | 01b7ced83452b733c4db004307292493c9dd6d73 (diff) | |
download | cpython-2e7840fe8fdb52b8d026017237593b445ebf9059.zip cpython-2e7840fe8fdb52b8d026017237593b445ebf9059.tar.gz cpython-2e7840fe8fdb52b8d026017237593b445ebf9059.tar.bz2 |
The usual.
Diffstat (limited to 'Lib/dos-8x3/posixpat.py')
-rwxr-xr-x | Lib/dos-8x3/posixpat.py | 7 |
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) |