[Python-checkins] r66213 - python/trunk/Lib/platform.py
hirokazu.yamamoto
python-checkins at python.org
Thu Sep 4 13:15:14 CEST 2008
Author: hirokazu.yamamoto
Date: Thu Sep 4 13:15:14 2008
New Revision: 66213
Log:
Issue #3762: platform.architecture() fails if python is lanched via its symbolic link.
Modified:
python/trunk/Lib/platform.py
Modified: python/trunk/Lib/platform.py
==============================================================================
--- python/trunk/Lib/platform.py (original)
+++ python/trunk/Lib/platform.py Thu Sep 4 13:15:14 2008
@@ -933,7 +933,7 @@
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=''):
More information about the Python-checkins
mailing list