Python Launcher makes scripts executable in Windows

less than 1 minute read

Python programs can be launched by

python myprog.py

The Python Launcher, on Windows allows running by simply

myprog.py

based on the shebang

#!/usr/bin/env python

which works on Linux, Mac AND Windows to search the user’s PATH for the desired Python executable.

Notes

Specific executables #!/usr/bin/python are only for specific situations like GNU Radio. Generally, please use #!/usr/bin/env python.

Leave a comment