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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to