Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 20:13 CEST schreef Mark Lawrence: > On 23/05/2015 18:30, Cecil Westerhof wrote: >> >> I should have checked better. I think I found a bug that made it >> look like PYTHONPATH does not work. >> >> In bash I give: >> echo $PYTHONPATH >> this gives: >> .:/home/cecil/Python/Pyt

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 19:30 CEST schreef Cecil Westerhof: > I should have checked better. I think I found a bug that made it > look like PYTHONPATH does not work. > > In bash I give: > echo $PYTHONPATH > this gives: > .:/home/cecil/Python/PythonLibrary > > Then I start ipython3 and get/do the fo

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Mark Lawrence
On 23/05/2015 18:30, Cecil Westerhof wrote: I should have checked better. I think I found a bug that made it look like PYTHONPATH does not work. In bash I give: echo $PYTHONPATH this gives: .:/home/cecil/Python/PythonLibrary Then I start ipython3 and get/do the following: Python

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 18:09 CEST schreef Peter Otten: > Cecil Westerhof wrote: > >> Op Saturday 23 May 2015 15:25 CEST schreef Peter Otten: >> >>> Cecil Westerhof wrote: >>> Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: > On 22/05/2015 06:20, Cecil Westerhof wrote:

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Peter Otten
Cecil Westerhof wrote: > Op Saturday 23 May 2015 15:25 CEST schreef Peter Otten: > >> Cecil Westerhof wrote: >> >>> Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: >>> On 22/05/2015 06:20, Cecil Westerhof wrote: > I am looking into using ipython instead of bash. But when I call

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 17:00 CEST schreef Laura Creighton: > In a message of Sat, 23 May 2015 16:08:00 +0200, Cecil Westerhof > writes: >> That is not the problem: >> os.environ['PYTHONPATH'] >> gives: >> .:/home/cecil/Python' >> >> As I interpret it is that the very handy shell variable is not u

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Laura Creighton
In a message of Sat, 23 May 2015 16:08:00 +0200, Cecil Westerhof writes: >That is not the problem: >os.environ['PYTHONPATH'] >gives: >.:/home/cecil/Python' > >As I interpret it is that the very handy shell variable is not used in ipython. > >-- >Cecil Westerhof >Senior Software Engineer >L

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 15:25 CEST schreef Peter Otten: > Cecil Westerhof wrote: > >> Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: >> >>> On 22/05/2015 06:20, Cecil Westerhof wrote: I am looking into using ipython instead of bash. But when I call a python program from ipytho

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Peter Otten
Cecil Westerhof wrote: > Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: > >> On 22/05/2015 06:20, Cecil Westerhof wrote: >>> I am looking into using ipython instead of bash. But when I call a >>> python program from ipython PYTHONPATH is not set. So pythonscripts >>> that need a module

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: > On 22/05/2015 06:20, Cecil Westerhof wrote: >> I am looking into using ipython instead of bash. But when I call a >> python program from ipython PYTHONPATH is not set. So pythonscripts >> that need a module through PYTHONPATH will not wor

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Mark Lawrence
On 22/05/2015 06:20, Cecil Westerhof wrote: I am looking into using ipython instead of bash. But when I call a python program from ipython PYTHONPATH is not set. So pythonscripts that need a module through PYTHONPATH will not work. I could do something like: !PYTHONPATH=~/Python/PythonLibra

PYTHONPATH when calling from ipython

2015-05-21 Thread Cecil Westerhof
I am looking into using ipython instead of bash. But when I call a python program from ipython PYTHONPATH is not set. So pythonscripts that need a module through PYTHONPATH will not work. I could do something like: !PYTHONPATH=~/Python/PythonLibrary python2 … But I find that a little bit cumb