public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Nick Stinemates <nick@stinemates.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] adding python module
Date: Fri, 25 Apr 2008 17:04:53 -0700	[thread overview]
Message-ID: <20080426000453.GA13982@deviL> (raw)
In-Reply-To: <47C69FF0.2070209@manchester.ac.uk>

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



      reply	other threads:[~2008-04-26  0:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-28 11:50 [gentoo-user] adding python module Gavin Seddon
2008-04-26  0:04 ` Nick Stinemates [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080426000453.GA13982@deviL \
    --to=nick@stinemates.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox