TheShed

Python on Unix

Category: Programming
#python

A fragment to let Unix boxes (and Mac OS X) know that this is a python script:

1
#!/usr/bin/env python

Add at the start of the script.

Make sure the script is executable with:

chmod +x scriptname.py