[Python-Dev] towards a stricter definition of sys.executable
Ulrich Berning
ulrich.berning at t-online.de
Thu Mar 16 21:38:50 CET 2006
Fredrik Lundh schrieb:
>how about this alternative ? (extended (b)).
>
> d) If Python was started from a standard Python interpreter,
> sys.executable contains the full path to this interpreter. If not,
> or if the path could not be determined, sys.executable is set to
> None.
>
>
Our registration code for Windows services and COM servers and some
other specific things rely on the fact, that sys.executable contains the
name of the binary, that is actually running (either the full path of
python[.exe] or the full path of the frozen application executable), so
please don't touch sys.executable.
Ulli
More information about the Python-Dev
mailing list