diff --git a/boot/boot.js b/boot/boot.js index c16ae86c3..ddca678da 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1546,7 +1546,11 @@ $tw.getLibraryItemSearchPaths = function(libraryPath,envVar) { var pluginPaths = [path.resolve($tw.boot.corePath,libraryPath)], env = process.env[envVar]; if(env) { - Array.prototype.push.apply(pluginPaths,env.split(path.delimiter)); + env.split(path.delimiter).map(function(item) { + if(item) { + pluginPaths.push(item) + } + }); } return pluginPaths; };