From: Hirokazu Yamamoto Date: Thu, 4 Sep 2008 11:15:14 +0000 (+0000) Subject: Issue #3762: platform.architecture() fails if python is lanched via its symbolic... X-Git-Tag: v2.6rc1~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=171c4aae4e9b763542c59978bce8d79b9492f813;p=thirdparty%2FPython%2Fcpython.git Issue #3762: platform.architecture() fails if python is lanched via its symbolic link. Reviewed by Amaury Forgeot d'Arc. --- diff --git a/Lib/platform.py b/Lib/platform.py index cc0431bc56c0..29d55ecf7b15 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=''):