On Wed, Sep 09, 2009 at 08:26:09PM +0200, Thomas Heller wrote:
I'm exploring pkgutil.extend_path(), together with a pkg-file somewhere on my PYTHONPATH.
I am wondering if it is somehow possible to interpret relative pathnames in the pkg-file relative to the directory which contains the pkg-file?
That's how site.addsitedir() works, and pkgutil.extend_path() claims to have the same behaviour for .pth files (with noted non-applicable exception) so if it doesn't then I guess it would be a bug.
-- Debian GNU/Linux -- The Power of Freedom www.debian.org | www.gnu.org | www.kernel.org