[Python-Dev] PEP397 no command line options to python? (original) (raw)
Vinay Sajip vinay_sajip at yahoo.co.uk
Sat Oct 22 14:15:46 CEST 2011
- Previous message: [Python-Dev] PEP397 no command line options to python?
- Next message: [Python-Dev] PEP397 no command line options to python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nick Coghlan <ncoghlan 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
- Previous message: [Python-Dev] PEP397 no command line options to python?
- Next message: [Python-Dev] PEP397 no command line options to python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]