diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-09-04 11:15:14 +0000 |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-09-04 11:15:14 +0000 |
commit | 171c4aae4e9b763542c59978bce8d79b9492f813 (patch) | |
tree | f733111177e36987ed526d4cbf935ae10acb0156 /Lib/platform.py | |
parent | 65d66e100649e28637616d34a54ba528fe1a4100 (diff) | |
download | cpython-git-171c4aae4e9b763542c59978bce8d79b9492f813.tar.gz |
Issue #3762: platform.architecture() fails if python is lanched via its symbolic link.
Reviewed by Amaury Forgeot d'Arc.
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-x | Lib/platform.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py index cc0431bc56..29d55ecf7b 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -933,7 +933,7 @@ def _follow_symlinks(filepath): filepath = _abspath(filepath) while os.path.islink(filepath): filepath = os.path.normpath( - os.path.join(filepath,os.readlink(filepath))) + os.path.join(os.path.dirname(filepath),os.readlink(filepath))) return filepath def _syscmd_uname(option,default=''): |