Clear the plugin path cache when adding new directories
This commit is contained in:
parent
dce94ec3c6
commit
5a57313dd7
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue