When you run a lot of python scripts from the linux command line there is a nice way to save some key strokes.
You have to put the following in the first line of your script. This is a called a shebang line. Although i have no idea why it has that name.
#!/usr/bin/env python
After this you have to make the script executable.
chmod +x generate.py
If all this is done, you can just run the script like a regular shell script.
before:
python test.py
after:
./test.py
Top comments (0)