in src/plugman/fetch.js [193:219]
function loadLocalPlugins (searchpath, pluginInfoProvider) {
if (localPlugins) {
// localPlugins already populated, nothing to do.
// just in case, make sure it was loaded with the same search path
if (localPlugins.searchpath.join(path.delimiter) !== searchpath.join(path.delimiter)) {
const msg =
'loadLocalPlugins called twice with different search paths.' +
'Support for this is not implemented. Using previously cached path.';
events.emit('warn', msg);
}
return;
}
// Populate localPlugins object.
localPlugins = {};
localPlugins.searchpath = searchpath;
localPlugins.plugins = {};
searchpath.forEach(function (dir) {
const ps = pluginInfoProvider.getAllWithinSearchPath(dir);
ps.forEach(function (p) {
const versions = localPlugins.plugins[p.id] || [];
versions.push(p);
localPlugins.plugins[p.id] = versions;
});
});
}