mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Merged revisions 66213 via svnmerge from
svn+ssh://pythondev@svn.python.org/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. ........
This commit is contained in:
parent
b212b75c22
commit
b12716b946
1 changed files with 1 additions and 1 deletions
|
@ -909,7 +909,7 @@ def _follow_symlinks(filepath):
|
||||||
filepath = os.path.abspath(filepath)
|
filepath = os.path.abspath(filepath)
|
||||||
while os.path.islink(filepath):
|
while os.path.islink(filepath):
|
||||||
filepath = os.path.normpath(
|
filepath = os.path.normpath(
|
||||||
os.path.join(filepath,os.readlink(filepath)))
|
os.path.join(os.path.dirname(filepath),os.readlink(filepath)))
|
||||||
return filepath
|
return filepath
|
||||||
|
|
||||||
def _syscmd_uname(option,default=''):
|
def _syscmd_uname(option,default=''):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue