[Python-Dev] Draft PEP and reference implementation of a Python launcher for Windows

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Mar 21 00:43:58 CET 2011


Mark Hammond wrote:

> The above raises an interesting question - if the launcher executed 
> Python in-process, what would sys.executable be?

I think it should be the actual Python executing at that
moment, not the launcher. This is the least change from
current behaviour and therefore least likely to break
existing code.

If some new code that's aware of the launcher wants to
use it, a new attribute such as sys.launcher could be
provided to make it easy to find. Or maybe a launch()
function that runs a specified script using launcher
semantics.

-- 
Greg


More information about the Python-Dev mailing list