[Tutor] IPython problem: Difficulty in setting editor to TextPad

arsyed arsyed at gmail.com
Sat Jul 19 00:41:53 CEST 2008


I just set the EDITOR environment variable under windows to textpad and %ed
works fine from ipython. It also gets used by subversion and other programs
for commit messages, etc.

>echo %EDITOR%
"C:\Program Files\TextPad 5\TextPad.exe"





On Thu, Jul 17, 2008 at 11:39 AM, Dick Moores <rdm at rcblue.com> wrote:

> At 08:13 AM 7/17/2008, Alan Gauld wrote:
>
>> "Dick Moores" <rdm at rcblue.com> wrote
>>
>>> In my ipy_user_conf.py I have put this line:
>>> ipy_editors.install_editor("C:\Program Files\TextPad 5\TextPad.exe")
>>>
>>
>> escape the spaces and backslashes(raw string might work as well)
>>
>
> Yeah, I tried that (except for the raw string).
>
>  ipy_editors.install_editor("C:\\Program\ Files\\TextPad 5\\TextPad.exe")
>>
>> OR maybe
>>
>> ipy_editors.install_editor(r"C:\Program Files\TextPad 5\TextPad.exe")
>>
>
> I finally got some help from one of the main IPython guys (just now). The
> line that partially works is
> ipy_editors.install_editor('"C:\Program Files\TextPad 5\TextPad.exe"
> ${file}(${line})')
>
> But using the line number doesn't work, so I skip it and do
>
> In [3]: ed versions.py
> Editing... > "C:\Program Files\TextPad 5\TextPad.exe" versions.py(0)
>
> This DOES open versions.py in Textpad, with the caret at line 1.
>
> Thanks for your educated guesses, Alan.
>
> Dick
> ======================================
> Have you seen the video introducing the terrific
> and free IDE, Ulipad? Download it from my website.
> <http://www.rcblue.com/u3/>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080718/dbd763ac/attachment.htm>


More information about the Tutor mailing list