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>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4