[Tutor] How does python find the modules I install ???

Joerg Woelke lumbricus@gmx.net
Thu, 16 Aug 2001 00:52:09 +0200


On Wed, Aug 15, 2001 at 03:57:35PM -0500, Rob Andrews wrote:
> Simon Vandemoortele wrote:
> > 
> > On Wednesday 15 August 2001 19:26, Rob Andrews wrote:
> > > Simon Vandemoortele wrote:
> > > > This is probably trivial but hey ... I'm a newbie !
> > > >
> > > > I installed Mysql-python and wondering how I am supposed to tell python
> > > > where the modules is. There's something in the FAQ about this
> > > > problem(http://www.python.org/cgi-bin/faqw.py?req=show&file=faq04.011.htp
> > > >) but I'm not sure it really applies to my situation.
> > >
> > > Which Operating System are you using?
> > >
> > > Rob
> > 
> > Sorry bout that ... Linux (SuSe)
> > 
> > /:-)
> > 
> 
> I'm not sure what to check on SuSe, but you should have a login script
> that runs when you log into your linux session. Look for "set path",
> "PATH=", or similar. Make sure the path to your modules is listed here.

suse linux uses bash as default shell - so it should
be $HOME/.bash_profile or /etc/profile (global - for all users) 
to set up environment with "PATH=blahfasel"
But the modules are not in ${PATH} anyway :-)
It's $PYTHONHOME or $PYTHONPATH
Did you install the rpm? (then there shouldn't be any problems)

> 
> Unless you meant something else entirely....

Or that :-)

HTH n' LG J"o! :-)

-- 
Mind your own business, Spock.  I'm sick of your halfbreed interference.