Commit 730c2ba4 by jensdepuydt

minor change to not search in non-existing paths

parent adc0e8be
......@@ -175,6 +175,7 @@ class PluginLoader(object):
found = None
for path in [p for p in self._get_paths() if p not in self._searched_paths]:
if os.path.isdir(path):
for potential_file in os.listdir(path):
for suffix in suffixes:
if potential_file.endswith(suffix):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment