[issue10483] http.server - what is executable on Windows

Glenn Linderman report at bugs.python.org
Mon Nov 22 03:03:40 CET 2010


Glenn Linderman <v+python at g.nevcal.com> added the comment:

Martin, that is an interesting viewpoint, and one I considered, but didn't state, because it seems much too restrictive.  Most CGI programs are written in scripting languages, not compiled to .exe.  So it seems the solution should allow for launching at least Perl and Python scripts, as well as .exe.  Whether subprocess.Popen can directly execute it, or whether it needs help from the registry or a #! line to get the execution going is just a matter of tweaking the coding for what gets passed to subprocess.Popen.  Declaring the definition based on what the existing code can already do is self-limiting.

Another possible interpretation of executable might be PATHEXT environment variable, but that is similar to declaring a list in the server source, which I did mention.  One might augment the other.

----------

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


More information about the Python-bugs-list mailing list