[PEAK] environment empty after scanning path

Markus Beyer m.beyer5 at gmx.de
Thu Apr 29 05:23:03 EDT 2010


Hi,

i have a little problem with pkg_resources.
I would like to load eggs from a path, but once i add the path to the environment, it is empty. The code looks like this:

import pkg_resources

PATH = "/path/to/my/egg-folder"

pkg_resources.working_set.add_entry(PATH)
env = pkg_resources.Environment([PATH])

Now, if i want to iterate through env entries, it turns out to be completely empty, zero entries.
This is independent of the path i use and also independent of how i invoke it (python cli, ipython, from gnome env, etc.)
Does anyone have any idea on how to make this work?

Thanks,
Markus 
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


More information about the PEAK mailing list