[Python-ideas] pep 397

Chris Angelico rosuav at gmail.com
Thu Jan 15 15:54:37 CET 2015


On Fri, Jan 16, 2015 at 1:52 AM, Skip Montanaro
<skip.montanaro at gmail.com> wrote:
> On Thu, Jan 15, 2015 at 8:31 AM, Wolfgang Maier
> <wolfgang.maier at biologie.uni-freiburg.de> wrote:
>>
>> What would be good is if the launcher had an additional flag telling it to not actually start python, but just report the path to it, something like:
>>
>> $ py --dry-run my_script
>>
>> C:\Python34\python.exe
>
> How about:
>
> % python -c 'import sys ; print sys.executable'
> /opt/local/bin/python

It has to be able to be controlled by a shebang in the script itself.

ChrisA


More information about the Python-ideas mailing list