[Python-Dev] PEP 370 - per-user scripts directory on Windows

Ethan Furman ethan at stoneleaf.us
Thu Feb 12 21:11:49 CET 2015


On 02/12/2015 11:44 AM, Glenn Linderman wrote:
> On 2/12/2015 9:39 AM, Ethan Furman wrote:
>> 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.
>>
> 
> IIRC, it already can be configured to start other things. I think I even used it for that early on in Vinay's
> development cycle, just to prove it, although the things I used it for then were not things I'm still doing.

I believe you are correct; however, as the PEP for the launcher stated [1] "use as a general-purpose (aka non-python)
launcher is explicitly not supported".

--
~Ethan~

[1] or something to that effect -- basically, it may work, but you're on your own if you use it that way.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150212/d6413fba/attachment.sig>


More information about the Python-Dev mailing list