Python path on windows

loial jldunn2000 at gmail.com
Fri Feb 20 10:16:11 EST 2015


On Friday, February 20, 2015 at 2:54:26 PM UTC, Ian wrote:
> On Feb 20, 2015 7:46 AM, "loial" <jldun... at gmail.com> wrote:
> 
> >
> 
> > 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?
> 
> https://docs.python.org/3/using/windows.html#launcher
> 
> Note that while the launcher can be used with any version of Python, it is only packaged with 3.3+.

Vesrion is 2.6



More information about the Python-list mailing list