Multiple versions of Python coexisting in the same OS

Thomas Jollans thomas at jollans.com
Sun Jul 25 16:18:27 EDT 2010


On 07/25/2010 10:04 PM, News123 wrote:
> 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.

Well, but a script converted with py2exe can't really ever assume that
there is a Python interpreter, at all.



More information about the Python-list mailing list