Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'bash': 0.07; 'loaded,': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'cc:addr:python-list': 0.10; '>that': 0.16; 'all?': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:89.233': 0.16; 'received:89.233.217': 0.16; 'received:89.233.217.133': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'subject:when': 0.16; 'laura': 0.18; 'shell': 0.18; 'variable': 0.20; 'cc:addr:python.org': 0.21; 'cc:2**1': 0.22; 'interpret': 0.22; 'problem:': 0.22; '2015': 0.23; 'sat,': 0.23; 'header:In- Reply-To:1': 0.24; '+0200,': 0.27; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; 'getting': 0.33; 'problem': 0.33; 'skip:. 20': 0.35; 'skip:o 20': 0.35; 'but': 0.36; 'modules': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'files': 0.38; 'things': 0.39; 'whatever': 0.39; 'your': 0.60; 'here.': 0.61; 'header:Message-Id:1': 0.62; 'export': 0.63; 'our': 0.64; 'received:89': 0.80; 'cecil': 0.84; 'url:cecilwesterhof': 0.84; 'westerhof': 0.84; 'do:': 0.91 To: Cecil Westerhof cc: python-list@python.org, lac@openend.se From: Laura Creighton Subject: Re: PYTHONPATH when calling from ipython In-Reply-To: Message from Cecil Westerhof of "Sat, 23 May 2015 16:08:00 +0200." <87egm7petb.fsf@Equus.decebal.nl> References: <874mn5qjc8.fsf@Equus.decebal.nl> <87iobjpnt4.fsf@Equus.decebal.nl> <87egm7petb.fsf@Equus.decebal.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3787.1432393216.1@fido> Content-Transfer-Encoding: quoted-printable Date: Sat, 23 May 2015 17:00:16 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Sat, 23 May 2015 17:00:19 +0200 (CEST) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432393226 news.xs4all.nl 2845 [2001:888:2000:d::a6]:41796 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91135 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 ip= ython. > >-- = >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=3D${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. Is your problem that you are not getting one particular directory loaded, or can you not find any modules at all? Laura