diff options
Diffstat (limited to 'Lib/os2emxpath.py')
-rw-r--r-- | Lib/os2emxpath.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/os2emxpath.py b/Lib/os2emxpath.py index 4e85c4d48d..1bed51d4fa 100644 --- a/Lib/os2emxpath.py +++ b/Lib/os2emxpath.py @@ -146,7 +146,11 @@ def normpath(path): def abspath(path): """Return the absolute version of a path""" if not isabs(path): - path = join(os.getcwd(), path) + if isinstance(path, unicode): + cwd = os.getcwdu() + else: + cwd = os.getcwd() + path = join(cwd, path) return normpath(path) # realpath is a no-op on systems without islink support |