[Python-Dev] PEP 370 - per-user scripts directory on Windows
Thomas Heller
theller at ctypes.org
Fri Feb 13 07:59:44 CET 2015
Am 12.02.2015 um 18:39 schrieb Ethan Furman:
> On 02/12/2015 12:05 AM, Thomas Heller wrote:
>
>> Could not py.exe be extended so that it allows starting scripts in a
>> somewhat similar way? 'py-script -2.7 myscript foo bar baz' ???
>> Which would execute the script myscript.exe, myscript.bat, myscript.py,
>> myscript.cmd or whatever is in the Scripts directory on the Python 2.7
>> installation, without changing PATH presistently?
>
> I'm pretty sure py.exe should only start .py files, not .bat, .cmd, or .anything-else.
To make it clear: My suggestion is (or was, maybe it isn't a good idea)
to have some way to start 'something' that is in the Scripts
directory of a Python installation (which is usually a python script
or an exe-wrapper for it), without typing in the full path. And without
changing the PATH envrionment variable.
Thomas
More information about the Python-Dev
mailing list