summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-09-04 11:15:14 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-09-04 11:15:14 (GMT)
commit171c4aae4e9b763542c59978bce8d79b9492f813 (patch)
treef733111177e36987ed526d4cbf935ae10acb0156 /Lib
parent65d66e100649e28637616d34a54ba528fe1a4100 (diff)
downloadcpython-171c4aae4e9b763542c59978bce8d79b9492f813.zip
cpython-171c4aae4e9b763542c59978bce8d79b9492f813.tar.gz
cpython-171c4aae4e9b763542c59978bce8d79b9492f813.tar.bz2
Issue #3762: platform.architecture() fails if python is lanched via its symbolic link.
Reviewed by Amaury Forgeot d'Arc.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/platform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index cc0431b..29d55ec 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=''):