Merge pull request #1505 from pmario/fix-search-path-runtime-error

Fix trailing semicolon in TIDDLYWIKI_EDITION_PATH
This commit is contained in:
Jeremy Ruston 2015-02-17 20:56:14 +00:00
commit 6c62954116
1 changed files with 5 additions and 1 deletions

View File

@ -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;
};