Riccardo Polignieri added the comment:

Paul: 
> When inside a venv:
- If you want to execute a script, use a shebang of #!/usr/bin/env python and 
then use `py myscript.py`

Yes, I'm totally on board with this - that is, as far as I run my own scripts. 
I just wonder, what if one day I pip install someone else's work, and then 
bang!, 'py' is just working differently now, for a non-local reason, and 
without alerting me. 

It's true that all major libraries use the "right" kind of shebang these 
days... Still, I find it a bit disturbing nevertheless. 

But thanks for the clarifications, anyways - now 'py' expected behavior is much 
more clear to me. 


Eryk:
> it's far simpler to just support versioned executable names

Keeping my fingers crossed about this.

> Even if we don't install links/copies with these names, I don't see the harm 
> in allowing the launcher to look for them. Users can create the links manually

True, but It would allow for yet another possible source of confusion I'm 
afraid. No, if py were to look for versioned executables, then versioned 
executable should be supplied imo.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28686>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to