pointing to the correct python
ark at research.att.com
Sat Mar 15 05:04:40 CET 2003
Bob> I am running cygwin under windows. If I have a python program that
Bob> starts with
Bob> it uses the cygwin python, which for most stuff is fine. But I need
Bob> to use the windows version of python any time I want to use PIL,
Bob> pygame, etc.. How do I tell the environment which python to use
Bob> (besides using #!/n/Python22/python)?
One way is to start your file with
and then be sure that the right python directory is the first one in
your PATH variable.
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark
More information about the Python-list