Using $PYTHONPATH in Reinteract

3 views
Skip to first unread message

walterl

unread,
May 5, 2009, 5:42:59 AM5/5/09
to Reinteract
Hi,

I can see Reinteract becoming an integral part of my development
process, so thank you very much for creating it.

It seems, however, that one cannot import modules from directories
listed in one's $PYTHONPATH environmental variable. I've looked for a
setting and/or command-line option, but could not find anything. Am I
missing something or should I file a bug for a feature request?

This is paramount to make Reinteract usable in my set-up where I'm
developing an application and a separate library.

Thanks in advance,

Walter

walterl

unread,
May 5, 2009, 8:53:26 AM5/5/09
to Reinteract

walterl

unread,
May 5, 2009, 8:56:24 AM5/5/09
to Reinteract
It seems as if the behaviour above is only applicable when I run
Reinteract from Gnome's Run dialog (which does not read the PYTHONPATH
from ~/.bashrc). I guess I'll wrap Reinteract in a bash script to set
the variable.

P.S. Sorry about the above empty reply: premature clickage.

Owen Taylor

unread,
Nov 7, 2009, 5:21:05 PM11/7/09
to reint...@googlegroups.com
On Tue, May 5, 2009 at 7:56 AM, walterl <wrleib...@gmail.com> wrote:
>
> It seems as if the behaviour above is only applicable when I run
> Reinteract from Gnome's Run dialog (which does not read the PYTHONPATH
> from ~/.bashrc). I guess I'll wrap Reinteract in a bash script to set
> the variable.

Sounds like a reasonable solution. There's obviously not much
Reinteract can do to to pick up a Python path that doesn't get passed
to it, but there should be a way to configure the paths (per-notebook
and globally) from within the Reinteract GUI. I filed a ticket:

http://www.reinteract.org/trac/ticket/92

To cover that enhancement.

- Owen

Reply all
Reply to author
Forward
0 new messages