Python path on windows

Ian Kelly ian.g.kelly at gmail.com
Fri Feb 20 09:54:11 EST 2015


On Feb 20, 2015 7:46 AM, "loial" <jldunn2000 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+.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150220/6467672a/attachment.html>


More information about the Python-list mailing list