diff options
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r-- | Lib/macpath.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py index d358bd2..ad87cb1 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py @@ -238,16 +238,16 @@ def abspath(path): # realpath is a no-op on systems without islink support def realpath(path): - path = abspath(path) - try: - import macfs - except ImportError: - return path - if not path: - return path - components = path.split(':') - path = components[0] + ':' - for c in components[1:]: - path = join(path, c) - path = macfs.ResolveAliasFile(path)[0].as_pathname() - return path + path = abspath(path) + try: + import macfs + except ImportError: + return path + if not path: + return path + components = path.split(':') + path = components[0] + ':' + for c in components[1:]: + path = join(path, c) + path = macfs.ResolveAliasFile(path)[0].as_pathname() + return path |