Multiple versions of Python coexisting in the same OS

News123 news1234 at free.fr
Sun Jul 25 16:04:35 EDT 2010


sOn 07/25/2010 09:39 PM, Christian Heimes wrote:
> Am 25.07.2010 21:32, schrieb Thomas Jollans:
>> If a script uses sys.executable instead of "python", there is no
>> problem, at all.


sys.executable will  not work  with scripts converted with py2exe,
as sys.executable will not be the executable of the python interpreter,
but with the main executable's name.





> 
> It's true that sys.executable is the best way if you have to start a new
> Python interpreter. However sys.executable may not be set for NT
> services. So there may be a problem after all.
> 




More information about the Python-list mailing list