Clear the plugin path cache when adding new directories

This commit is contained in:
James Cammarata 2016-09-27 14:41:31 -05:00
parent dce94ec3c6
commit 5a57313dd7

View file

@ -219,6 +219,7 @@ class PluginLoader:
if directory not in self._extra_dirs:
# append the directory and invalidate the path cache
self._extra_dirs.append(directory)
self._plugin_path_cache.clear()
self._paths = None
def find_plugin(self, name, mod_type=''):