[issue2200] find_executable fails to find .bat files on win32

Martin v. Löwis report at bugs.python.org
Sun Mar 20 21:04:18 CET 2011


Martin v. Löwis <martin at v.loewis.de> added the comment:

I think the patch is incorrect. Parsing PATHEXT means that it will believe that all extensions listed on PATHEXT are executable. However, os.spawnv is not able to run them all, but only a subset. IIUC, spawnv supports (from spawnve.c)

static _TSCHAR *ext_strings[] = { _T(".cmd"), _T(".bat"), _T(".exe"), _T(".com") };

PATHEXT typically includes also .js and other extensions which cannot be run through spawnv.

----------

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


More information about the Python-bugs-list mailing list