diff options
| author | Gael Pasgrimaud <gael@gawel.org> | 2011-01-29 17:25:01 +0100 |
|---|---|---|
| committer | Gael Pasgrimaud <gael@gawel.org> | 2011-01-29 17:25:01 +0100 |
| commit | d8f2dbd212feb1dbcacb9ea6e21cd65c1d455bf3 (patch) | |
| tree | ec4dc14e1444f2bb2a41d4e373f88a4d81fbd09e | |
| parent | 700f40a56248e9017aa006813ab394634ad9838d (diff) | |
| download | disutils2-d8f2dbd212feb1dbcacb9ea6e21cd65c1d455bf3.tar.gz | |
cache need to take care of paths
| -rw-r--r-- | distutils2/_backport/pkgutil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distutils2/_backport/pkgutil.py b/distutils2/_backport/pkgutil.py index ec81017..83eceba 100644 --- a/distutils2/_backport/pkgutil.py +++ b/distutils2/_backport/pkgutil.py @@ -1031,7 +1031,7 @@ def get_distributions(use_egg_info=False, paths=sys.path): for dist in _yield_distributions(True, use_egg_info, paths): yield dist else: - _generate_cache(use_egg_info) + _generate_cache(use_egg_info, paths) for dist in _cache_path.itervalues(): yield dist @@ -1063,7 +1063,7 @@ def get_distribution(name, use_egg_info=False, paths=sys.path): if dist.name == name: return dist else: - _generate_cache(use_egg_info) + _generate_cache(use_egg_info, paths) if name in _cache_name: return _cache_name[name][0] |
