summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGael Pasgrimaud <gael@gawel.org>2011-01-29 17:25:01 +0100
committerGael Pasgrimaud <gael@gawel.org>2011-01-29 17:25:01 +0100
commitd8f2dbd212feb1dbcacb9ea6e21cd65c1d455bf3 (patch)
treeec4dc14e1444f2bb2a41d4e373f88a4d81fbd09e
parent700f40a56248e9017aa006813ab394634ad9838d (diff)
downloaddisutils2-d8f2dbd212feb1dbcacb9ea6e21cd65c1d455bf3.tar.gz
cache need to take care of paths
-rw-r--r--distutils2/_backport/pkgutil.py4
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]