1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Use OS-independent path delimiter

Fixes #1187
This commit is contained in:
Jermolene 2014-12-03 17:24:59 +00:00
parent 870006d2b9
commit 1e3a41311d

View File

@ -1537,7 +1537,7 @@ $tw.getLibraryItemSearchPaths = function(libraryPath,envVar) {
var pluginPaths = [path.resolve($tw.boot.corePath,libraryPath)], var pluginPaths = [path.resolve($tw.boot.corePath,libraryPath)],
env = process.env[envVar]; env = process.env[envVar];
if(env) { if(env) {
Array.prototype.push.apply(pluginPaths,env.split(":")); Array.prototype.push.apply(pluginPaths,env.split(path.delimiter));
} }
return pluginPaths; return pluginPaths;
}; };