diff options
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r-- | Lib/macpath.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py index 68dd6d4..b19d5a1 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py @@ -212,3 +212,10 @@ def walk(top, func, arg): name = join(top, name) if isdir(name): walk(name, func, arg) + + +# Return an absolute path. +def abspath(path): + if not isabs(path): + path = join(os.getcwd(), path) + return normpath(path) |