[Python-checkins] r66214 - python/branches/release25-maint/Lib/platform.py

hirokazu.yamamoto python-checkins at python.org
Thu Sep 4 13:21:28 CEST 2008


Author: hirokazu.yamamoto
Date: Thu Sep 4 13:21:28 2008
New Revision: 66214
Log:
Issue #3762: platform.architecture() fails if python is lanched via its symbolic link.
Backport of r66213
Modified:
 python/branches/release25-maint/Lib/platform.py
Modified: python/branches/release25-maint/Lib/platform.py
==============================================================================
--- python/branches/release25-maint/Lib/platform.py	(original)
+++ python/branches/release25-maint/Lib/platform.py	Thu Sep 4 13:21:28 2008
@@ -793,7 +793,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

AltStyle によって変換されたページ (->オリジナル) /