On Sun, Nov 24, 2013 at 4:05 AM, Chris Angelico <ros...@gmail.com> wrote: > Undocumented... that explains why I didn't know about it! But that > does appear to be what I'm looking for, so is there some equivalent > planned as a replacement?
Hmm, playing around with importlib a bit, this seems to work: from importlib import find_loader loader = find_loader('spam', ['/path/to']) if loader is not None: module = loader.load_module() The path passed to find_loader is searched instead of sys.path. -- https://mail.python.org/mailman/listinfo/python-list