Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b12716b

Browse files
author
Hirokazu Yamamoto
committed
Merged revisions 66213 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r66213 | hirokazu.yamamoto | 2008-09-04 20:15:14 +0900 | 1 line Issue #3762: platform.architecture() fails if python is lanched via its symbolic link. Reviewed by Amaury Forgeot d'Arc. ........
1 parent b212b75 commit b12716b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ def _follow_symlinks(filepath):
909909
filepath = os.path.abspath(filepath)
910910
while os.path.islink(filepath):
911911
filepath = os.path.normpath(
912-
os.path.join(filepath,os.readlink(filepath)))
912+
os.path.join(os.path.dirname(filepath),os.readlink(filepath)))
913913
return filepath
914914

915915
def _syscmd_uname(option,default=''):

0 commit comments

Comments
 (0)