Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use a shebang

Put #!/usr/bin/env python3 at the beginning of your python script and make it executable: chmod +x main.py You can now run it this way:

$ ./main.py

or just:

$ main.py

if it's in your PATH