public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] adding python module
@ 2008-02-28 11:50 Gavin Seddon
  2008-04-26  0:04 ` Nick Stinemates
  0 siblings, 1 reply; 2+ messages in thread
From: Gavin Seddon @ 2008-02-28 11:50 UTC (permalink / raw
  To: gentoo-list

Hi,
Can anyone tell me how to add a python module to python, or give me a
url telling me how?
THANKS
GAVIN
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] adding python module
  2008-02-28 11:50 [gentoo-user] adding python module Gavin Seddon
@ 2008-04-26  0:04 ` Nick Stinemates
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Stinemates @ 2008-04-26  0:04 UTC (permalink / raw
  To: gentoo-user

On Thu, Feb 28, 2008 at 11:50:08AM +0000, Gavin Seddon wrote:
> Hi,
> Can anyone tell me how to add a python module to python, or give me a
> url telling me how?
> THANKS
> GAVIN
> -- 
> gentoo-user@lists.gentoo.org mailing list
> 
Not really a gentoo question, but, you have 2 options.

Add your modules directory to the $PYTHONPATH.
To see what that is:

nick@lusT ~ $ echo $PYTHONPATH
/usr/lib/portage/pym

Next option is to put it in /usr/lib/python2.4(or 2.5)/site-packages

Last, but certainly not least, put the python module in your python
projects root directory


-- 
Nick Stinemates (nick@stinemates.org)
http://nick.stinemates.org
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-26  0:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-28 11:50 [gentoo-user] adding python module Gavin Seddon
2008-04-26  0:04 ` Nick Stinemates

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox