Prefer categorized modules to uncategorized, such that if someone does an install on top of old content

the categorized modules will win over the 1.1 uncategorized modules, as the packages may not automatically
clean up the old content.
pull/2960/head
Michael DeHaan 12 years ago
parent cd57d59913
commit 753ebea186

@ -108,11 +108,11 @@ class PluginLoader(object):
# look in any configured plugin paths, allow one level deep for subcategories
configured_paths = self.config.split(os.pathsep)
for path in configured_paths:
ret.append(path)
contents = glob.glob("%s/*" % path)
for c in contents:
if os.path.isdir(c):
ret.append(c)
ret.append(path)
# look for any plugins installed in the package subtree
ret.extend(self._get_package_paths())

Loading…
Cancel
Save