Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!newsfeed.pionier.net.pl!feed.xsnews.nl!border03.ams.xsnews.nl!feeder04.ams.xsnews.nl!abp002.ams.xsnews.nl!frontend-F10-20.ams.news.kpn.nl From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Re: PYTHONPATH when calling from ipython Organization: Decebal Computing References: <874mn5qjc8.fsf@Equus.decebal.nl> <87iobjpnt4.fsf@Equus.decebal.nl> <87egm7petb.fsf@Equus.decebal.nl> X-Face: "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR,v+Pti8=Vi/Z"g^?b"E X-Homepage: http://www.decebal.nl/ Date: Sat, 23 May 2015 17:24:30 +0200 Message-ID: <87a8wvpb9t.fsf@Equus.decebal.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:y9PbNz/t5ifkg67FjZkMZPWWVGE= MIME-Version: 1.0 Content-Type: text/plain Lines: 36 NNTP-Posting-Host: 81.207.62.244 X-Trace: 1432394963 news.kpn.nl 21172 81.207.62.244@kpn/81.207.62.244:43243 Xref: csiph.com comp.lang.python:91136 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 used >> in ipython. >> >> -- >> Cecil Westerhof >> Senior Software Engineer >> LinkedIn: http://www.linkedin.com/in/cecilwesterhof > > It's used around here. But we all have to do: > export PYTHONPATH=${PYTHONPATH}:/usr/local/ipython/lib/python > in our .bashrc files -- or whatever you do if you don't use bash > to get things to work with ipython. But I would like to do the same in ipython. Otherwise it is not really a good idea to switch from bash to ipython. > Is your problem that you are not getting one particular directory > loaded, or can you not find any modules at all? Normal modules are loaded. Only the ones that are found trough PYTHONPATH are not found. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof