mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
Issue #3762: platform.architecture() fails if python is lanched via its symbolic link.
Reviewed Amaury Forgeot d'Arc (Backport of r66213)
This commit is contained in:
parent
afa0d58a2d
commit
f4e2ccf3b3
1 changed files with 1 additions and 1 deletions
|
@ -793,7 +793,7 @@ def _follow_symlinks(filepath):
|
||||||
filepath = _abspath(filepath)
|
filepath = _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