diff --git a/core/modules/commands/makelibrary.js b/core/modules/commands/makelibrary.js index ce7150f0c..ae5977844 100644 --- a/core/modules/commands/makelibrary.js +++ b/core/modules/commands/makelibrary.js @@ -51,9 +51,20 @@ Command.prototype.execute = function() { } } }; - collectPublisherPlugins(path.resolve($tw.boot.corePath,$tw.config.pluginsPath)); - collectPublisherPlugins(path.resolve($tw.boot.corePath,$tw.config.themesPath)); - collectPlugins(path.resolve($tw.boot.corePath,$tw.config.languagesPath)); + var pluginsPaths = $tw.getLibraryItemSearchPaths($tw.config.pluginsPath,$tw.config.pluginsEnvVar); + for(var u=0; u