Mike Driscoll wrote:
On Tue, Mar 22, 2011 at 2:12 PM, Michael Foord
<fuzzy...@voidspace.org.uk> wrote:
On 22/03/2011 07:21, Mark Hammond wrote:

Hi all,
  I've made some changes to the draft PEP and checked it into the PEP
repository as PEP397.  The reference implementation is currently being
tracked at http://bugs.python.org/issue11629.


Hey Mark,

One way of supporting alternative implementations (that may not even have a
standard install directory) is allowing configuration. e.g. config.ini

    [paths]
    ironpython = c:\Program Files\IronPython 2.7\ipy.exe
    ironpython2.7 = c:\Program Files\IronPython 2.7\ipy.exe
    jython = c:\Users\foobar\jython2.5\jython.exe

Pythons specified in this way should be recognised in the shebang line using
any of the formats:

    #! ironpython
    #! /usr/bin/ironpython
    #! /usr/bin/env ironpython

This would also permit alternative install locations. (And it would be nice
if the launcher could use the config file to *automatically* do the right
thing for the 'w' variants.)

All the best,

Michael


Oops...I accidentally sent this off-list:

The main problem I can think of for the config file is that those hard
coded paths probably won't work about 10% of the time. I install my
Python stuff in a different location then the C drive, for example.

How is that a problem?  Just update your config for your locations.

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

Reply via email to