remove temporary variable

This commit is contained in:
Mario Pietsch 2015-02-17 01:29:42 +01:00
parent 95d7a826f0
commit e1b57bf9e5
1 changed files with 2 additions and 4 deletions

View File

@ -1544,15 +1544,13 @@ Returns an array of search paths
*/
$tw.getLibraryItemSearchPaths = function(libraryPath,envVar) {
var pluginPaths = [path.resolve($tw.boot.corePath,libraryPath)],
env = process.env[envVar],
paths = [];
env = process.env[envVar];
if(env) {
env.split(path.delimiter).map(function(item) {
if(item) {
paths.push(item)
pluginPaths.push(item)
}
});
Array.prototype.push.apply(pluginPaths,paths);
}
return pluginPaths;
};