Clear the plugin path cache when adding new directories

pull/17776/head
James Cammarata 9 years ago
parent dce94ec3c6
commit 5a57313dd7

@ -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=''):

Loading…
Cancel
Save