environment empty after scanning path

"Markus Beyer" <[email protected]> Thu, 29 Apr 2010 11:23:03 +0200
Newsgroups gmane.comp.python.peak
Message-ID <[email protected]>
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