[Distutils] pkgutil.extend_path and .pkg files
Floris Bruynooghe
floris.bruynooghe at gmail.com
Thu Sep 10 01:10:23 CEST 2009
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.
Regards
Floris
--
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org
More information about the Distutils-SIG
mailing list