On 23/03/2011 14:52, 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 athttp://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

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.

The whole point of a config file is that you put the paths in there yourself...

To be honest I would be happy with registry entries instead as the alternative implementations can then add to their installers (or provide a script) to add the right registry entry.

Michael

- Mike


--
http://www.voidspace.org.uk/

May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessinghttp://www.sqlite.org/different.html

_______________________________________________
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