Steve Dower <steve.do...@python.org> added the comment:

> Create a pyscript launcher, which would work like py but would take as 
> command-line the name of the script to run ...

This is spelled "py [-x.y] -m [script]", but it's up to the libraries to 
support it. We can't force them to do it.

> Let py execute a command-line with proper environment for that specific 
> version of python

"Proper environment" is a matter of opinion, as evidenced by hundreds of issues 
that arise every time people try to get clever here.

And %PATH% on Windows is a system setting that has an impact on every 
application that launches, and also has different behaviour on different 
version of the OS (because it's a system setting, so the system can change how 
it uses that setting over time).

Perhaps what you want is a virtual environment? Then your activate command is 
spelled "activate" and your exit command is spelled "deactivate". These have 
some of the issues I hinted at, as well as many of their own, but at least they 
already exist and are in widespread use, so most libraries are going to avoid 
relying on things that don't work. Inventing a new approach here would create 
and entirely new set of things that don't work, and it'll take the ecosystem 
years to catch up (and many won't even care to try until there's critical mass 
usage of the new approach, which won't happen until the ecosystem catches up, 
etc. etc.)

----------

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

Reply via email to