From 171c4aae4e9b763542c59978bce8d79b9492f813 Mon Sep 17 00:00:00 2001 From: Hirokazu Yamamoto Date: Thu, 4 Sep 2008 11:15:14 +0000 Subject: Issue #3762: platform.architecture() fails if python is lanched via its symbolic link. Reviewed by Amaury Forgeot d'Arc. --- Lib/platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=''): -- cgit v0.12