[New-bugs-announce] [issue3762] platform.architecture() fails if python is lanched via its symbolic link (cygwin)

Hirokazu Yamamoto report at bugs.python.org
Wed Sep 3 09:04:23 CEST 2008


New submission from Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp>:

I created symbolic link to python.exe as dummy.exe on cygwin.
But I noticed platform.architecture() printed ('32bit', '')

$ ./dummy
Python 2.6b3+ (trunk:66166M, Sep  3 2008, 06:43:59)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform._follow_symlinks("dummy.exe")
'/home/WhiteRabbit/python-dev/trunk/dummy.exe/python.exe'
>>>

Is this _follow_symlinks's intended behavior? If no, I hope attached
patch will fix problem. Now platform.architecture() prints
('32bit', 'WindowsPE')

----------
messages: 72376
nosy: ocean-city
severity: normal
status: open
title: platform.architecture() fails if python is lanched via its symbolic link (cygwin)
versions: Python 2.5, Python 2.6, Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3762>
_______________________________________


More information about the New-bugs-announce mailing list