[16:23] <exg> hi, got a min? [16:26] <FuzzyRay|work> Sure, what's up? [16:28] <exg> I work on prefix-portage and I tried to use gentoolkit on a prefixed installation; the only problem are the hardcoded sys.path.insert(0, "/usr/lib/portage/pym")/sys.path.insert(0, "/usr/lib/gentoolkit/pym"); first of all why is the former needed? portage adds an env file to add to PYTHONPATH its pym dir [16:31] <FuzzyRay|work> I don't think portage has always added the env file, secondly I didn't write the code, but I'll be happy to try to fix it [16:33] <exg> thanks; maybe for /usr/lib/gentoolkit/pym you can add an env file too?
I'm having problems getting this to work correctly 100% of the time. In my testing, if I remove the hardcoded paths, I always get an import error when using sudo to access equery or similar. An unoffical ebuild and release tarball are available at http://dev.gentoo.org/~fuzzyray/overlay/app-portage/gentoolkit/ for anyone who wants to look at it and suggest changes. Until I figure out how to make this work 100% of the time, I will not be committing the changes.
Isn't this essentially a dupe of bug 83080?
*** This bug has been marked as a duplicate of bug 83080 ***