Stupid question: Making scripts python-scripts

callmebill at gmail.com callmebill at gmail.com
Thu Jul 21 10:41:37 EDT 2005


On your system, do:
which python2.4

That will give you the full path to the python2.4 binary (let's call it
"path/to/py24").

Then add:
#!/path/to/py24

...to the top of your script.

And make sure the file is chmod'd +x




More information about the Python-list mailing list