Revert "Clear the plugin path cache when adding new directories" (#17785)
This reverts commit 5a57313dd7
.
pull/4420/head
parent
5a57313dd7
commit
670536f685
|
@ -219,7 +219,6 @@ class PluginLoader:
|
||||||
if directory not in self._extra_dirs:
|
if directory not in self._extra_dirs:
|
||||||
# append the directory and invalidate the path cache
|
# append the directory and invalidate the path cache
|
||||||
self._extra_dirs.append(directory)
|
self._extra_dirs.append(directory)
|
||||||
self._plugin_path_cache.clear()
|
|
||||||
self._paths = None
|
self._paths = None
|
||||||
|
|
||||||
def find_plugin(self, name, mod_type=''):
|
def find_plugin(self, name, mod_type=''):
|
||||||
|
|
Loading…
Reference in New Issue