FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

LinkBack Thread Tools
Old 04-26-2008, 12:04 AM
Nick Stinemates
Default adding python module

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?
> --
> 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

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)
gentoo-user@lists.gentoo.org mailing list

Thread Tools

All times are GMT. The time now is 12:26 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org