[IPython-dev] pyreadline question
jorgen.stenarson at bostream.nu
Wed Apr 19 15:12:11 CDT 2006
Moved from a thread in ipython-user.
I tried to add this to ipy_user_conf.py. But I believe that file is
executed after readline is imported which won't work.
But perhaps we could apply the patch and continue to think about how to
best expose the configuration.
Ville Vainio skrev:
> On 3/31/06, Jörgen Stenarson <jorgen.stenarson at bostream.nu> wrote:
>> I had to make some backwards incompatible changes to how pyreadline is
>> started. Now the recommended way is to "import readline" to initialize
>> pyreadline, if you want to set the config_path do:
>> import pyreadline.rlmain
>> before "import readline".
>> Ville will have to decide on how he wants to expose this in ipython. A
>> workaround for now is to add those two lines before "import IPython" in
>> the ipython.py startup script.
> Perhaps we should put the lines you suggest in
> UserConfig/ipy_user_conf.py, in comments? That's the first place the
> user *should* look for personal config options...
> Extensions/ipy_system_conf.py is ok as well, considering that
> pyreadline is only used on Windows ATM.
> Ville Vainio - vivainio.googlepages.com
> vainio.blogspot.com - g[mail | talk]='vivainio'
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the IPython-dev