2008-11-07 Johan Dahlin <jdahlin@async.com.br>
* giscanner/libtoolimporter.py
(LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
svn path=/trunk/; revision=870
up some confusion about the second argument to find_module, it's
actually the packages __path__ attribute which we can safely ignore
for our purposes.
+ (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
2008-11-07 Owen Taylor <otaylor@redhat.com>
realpath = extract_libtool(self.path)
mod = imp.load_module(name, open(realpath), realpath,
('.so', 'rb', 3))
+ mod.__loader__ = self
return mod
@classmethod