Re: javatoolkit: new project layout
Petteri Räty <[email protected]>
| Newsgroups | gmane.linux.gentoo.java |
|---|---|
| Message-ID | <[email protected]> |
Fabian Groffen kirjoitti: > > would it be possible to do it like we do it in Portage? > > sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path. realpath(__file__))), "pym")) > Or we could just depend on a new enough Portage where just import portage works. This probably works in prefix too? > > 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 = '' > > pkg = glob.glob(EPREFIX + '/usr/share/*/package.env') > Well you build against the stuff in / so ROOT should not be used I think. Regards, Petteri
signature.asc
(application/pgp-signature, 260 B)
-----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-----