commit | 2e7840fe8fdb52b8d026017237593b445ebf9059 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Feb 09 18:40:13 1999 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Feb 09 18:40:13 1999 +0000 |
tree | a7ee5115e9bdeb27b450c61b61aabe5c8144d491 | |
parent | 01b7ced83452b733c4db004307292493c9dd6d73 [diff] [blame] |
The usual.
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 @@ 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)