Tolerate no module search path.

This commit is contained in:
Michael DeHaan 2014-09-28 12:09:53 -04:00
commit 3908d50b03

View file

@ -126,6 +126,7 @@ class PluginLoader(object):
ret.append(fullpath)
# look in any configured plugin paths, allow one level deep for subcategories
if self.config is not None:
configured_paths = self.config.split(os.pathsep)
for path in configured_paths:
path = os.path.realpath(os.path.expanduser(path))