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.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to