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 1JBybd-0007mT-EE for garchives@archives.gentoo.org; Mon, 07 Jan 2008 20:29:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3201EE07A6; Mon, 7 Jan 2008 20:29:56 +0000 (UTC) Received: from smtp03.tky.fi (smtp03.tky.fi [82.130.63.73]) by pigeon.gentoo.org (Postfix) with SMTP id DB05BE07A6 for ; Mon, 7 Jan 2008 20:29:55 +0000 (UTC) Received: from [82.130.46.201] ([82.130.46.201]) by smtp03.tky.fi (SMSSMTP 4.1.9.35) with SMTP id M2008010722295119855 ; Mon, 07 Jan 2008 22:29:51 +0200 Message-ID: <47828BBA.7070800@gentoo.org> Date: Mon, 07 Jan 2008 22:29:46 +0200 From: =?UTF-8?B?UGV0dGVyaSBSw6R0eQ==?= User-Agent: Thunderbird 2.0.0.9 (X11/20071124) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@lists.gentoo.org MIME-Version: 1.0 To: Fabian Groffen CC: gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] javatoolkit: new project layout References: <477F7510.7020505@gentoo.org> <20080105123126.GG7944@gentoo.org> <477FF6B9.6020708@gmail.com> <20080107201921.GF21604@gentoo.org> In-Reply-To: <20080107201921.GF21604@gentoo.org> X-Enigmail-Version: 0.95.6 OpenPGP: url=http://users.tkk.fi/~praty/public.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig08A76F37B78AAA2DA99BA7D9" X-Archives-Salt: c853d053-a972-4289-be02-aeb84a1b4cd9 X-Archives-Hash: 1bc565fb8b11ed4e323d53ce2e2eb4e2 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig08A76F37B78AAA2DA99BA7D9 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Fabian Groffen kirjoitti: >=20 > would it be possible to do it like we do it in Portage? >=20 > sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.pat= h. realpath(__file__))), "pym")) >=20 Or we could just depend on a new enough Portage where just import=20 portage works. This probably works in prefix too? >=20 > The globs in findclass I guess we'll have to patch in the prefix case, > though I'm wondering if that doesn't need ROOT support anyway? > If you'd really want to make be happy you'd do a > try: > from portage.const import EPREFIX > catch ImportError: > EPREFIX =3D '' >=20 > pkg =3D glob.glob(EPREFIX + '/usr/share/*/package.env') >=20 Well you build against the stuff in / so ROOT should not be used I think.= Regards, Petteri --------------enig08A76F37B78AAA2DA99BA7D9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEUEARECAAYFAkeCi70ACgkQcxLzpIGCsLT3AgCWPkdIH1iLD3qfyqHIUS2zepr5 qwCeMNp4vUElzMCX2slOGnsOLIZDwrQ= =8Tx2 -----END PGP SIGNATURE----- --------------enig08A76F37B78AAA2DA99BA7D9-- -- gentoo-java@lists.gentoo.org mailing list