This needs to be done if you need to run the script as follows: ./file.py . Keep in mind that you need to put the python path at the very top of the script: #!/usr/bin/python .
But wait, you need to make sure you have the right path to accomplish this: which python .
source share