Nick Coghlan <ncoghlan <at> gmail.com> writes:

> As a simpler alternative, I suggest the launcher just gain a "--which"
> long option that displays the full path to the interpreter it found.
> 
> So:
> 
> C:\> py -2 --which
> C:\Python27\python.exe
> 
> C:\> py -3 --which
> C:\Python32\python.exe
> 
> No significant complexity in the launcher, and if you want to add
> additional arguments like -m, -c, or -i you can do it by running
> '--which' and switching to invoking that interpreter directly.

Perhaps even simpler would be for the -h option to print the interpreter paths
which would be returned for -2 and -3, on separate lines, even without the
--which, e.g.

Currently configured:
-2: c:\Python27\python.exe
-3: c:\Python32\python.exe

Regards,

Vinay Sajip


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to