Python path on windows

loial jldunn2000 at gmail.com
Fri Feb 20 09:43:21 EST 2015


On Linux we use 
#!/usr/bin/env python

At the start of scripts to ensure that the python executable used is the one defined in the PATH variable, rather than hardcoding a path to the python executable.

What is the equivalent functionality in Windows?




More information about the Python-list mailing list