[Python-Dev] #!/usr/bin/env python --> python3 where applicable

Jim Jewett jimjjewett at gmail.com
Thu Apr 30 21:03:47 CEST 2009


Jared Grubb wrote:

> Ok, so if I understand, the situation is:
> * python points to 2.x version
> * python3 points to 3.x version
> * need to be able to run certain 3k scripts from cmdline (since we're
>    talking about shebangs) using Python3k even though "python"
>    points to  2.x

> So, if I got the situation right, then do these same scripts
> understand that PYTHONPATH and PYTHONHOME and all the others
> are also  probably pointing to 2.x code?

Would it make sense to introduce PYTHON2PATH and PYTHON3PATH (or even
PYTHON27PATH and PYTHON 32PATH) et al?

Or is this an area where we just figure that whoever moved the file
locations around for distribution can hardcode things properly?

-jJ


More information about the Python-Dev mailing list