1 |
On Thu, Feb 28, 2008 at 11:50:08AM +0000, Gavin Seddon wrote: |
2 |
> Hi, |
3 |
> Can anyone tell me how to add a python module to python, or give me a |
4 |
> url telling me how? |
5 |
> THANKS |
6 |
> GAVIN |
7 |
> -- |
8 |
> gentoo-user@l.g.o mailing list |
9 |
> |
10 |
Not really a gentoo question, but, you have 2 options. |
11 |
|
12 |
Add your modules directory to the $PYTHONPATH. |
13 |
To see what that is: |
14 |
|
15 |
nick@lusT ~ $ echo $PYTHONPATH |
16 |
/usr/lib/portage/pym |
17 |
|
18 |
Next option is to put it in /usr/lib/python2.4(or 2.5)/site-packages |
19 |
|
20 |
Last, but certainly not least, put the python module in your python |
21 |
projects root directory |
22 |
|
23 |
|
24 |
-- |
25 |
Nick Stinemates (nick@××××××××××.org) |
26 |
http://nick.stinemates.org |
27 |
-- |
28 |
gentoo-user@l.g.o mailing list |