From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JpXu4-0004vD-8t for garchives@archives.gentoo.org; Sat, 26 Apr 2008 00:04:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0F469E0663; Sat, 26 Apr 2008 00:04:29 +0000 (UTC) Received: from QMTA08.emeryville.ca.mail.comcast.net (qmta08.emeryville.ca.mail.comcast.net [76.96.30.80]) by pigeon.gentoo.org (Postfix) with ESMTP id A1C7BE0663 for ; Sat, 26 Apr 2008 00:04:28 +0000 (UTC) Received: from OMTA09.emeryville.ca.mail.comcast.net ([76.96.30.20]) by QMTA08.emeryville.ca.mail.comcast.net with comcast id HtYd1Z00Y0S2fkCA80JA00; Sat, 26 Apr 2008 00:02:56 +0000 Received: from deviL.stinemate.org ([76.103.109.185]) by OMTA09.emeryville.ca.mail.comcast.net with comcast id J04T1Z00F402a788V00000; Sat, 26 Apr 2008 00:04:28 +0000 X-Authority-Analysis: v=1.0 c=1 a=Uh_Udn8ax1cA:10 a=RdzmUDV4AAAA:8 a=ZFVTOuSdk3uNLsJ5rhEA:9 a=hcMYNaWMCTJZFiT0bFgA:7 a=w05WvBOYwtw9nLIENVfA85M7c-QA:4 a=jfcfktOoVzsA:10 a=LY0hPdMaydYA:10 Received: by deviL.stinemate.org (Postfix, from userid 1000) id 14855207408; Fri, 25 Apr 2008 17:04:53 -0700 (PDT) Date: Fri, 25 Apr 2008 17:04:53 -0700 From: Nick Stinemates To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] adding python module Message-ID: <20080426000453.GA13982@deviL> References: <47C69FF0.2070209@manchester.ac.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47C69FF0.2070209@manchester.ac.uk> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 80058724-dc33-4dce-8d97-8524adb7fe20 X-Archives-Hash: 08470150275a5d0b62f0fa3f540ab7fc 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