1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-27 13:47:40 +00:00

Add support for TIDDLYWIKI_EDITION_PATH

This commit is contained in:
Jermolene
2014-06-17 21:59:20 +01:00
parent b2e48d00e9
commit a9b7df96c2
2 changed files with 38 additions and 12 deletions

View File

@@ -34,7 +34,7 @@ Command.prototype.execute = function() {
for(var editionIndex=0; editionIndex<editions.length; editionIndex++) {
var editionName = editions[editionIndex];
// Check the edition exists
var editionPath = path.resolve($tw.boot.corePath,$tw.config.editionsPath) + path.sep + editionName;
var editionPath = $tw.findLibraryItem(editionName,$tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar));
if(!$tw.utils.isDirectory(editionPath)) {
return "Edition '" + editionName + "' not found";
}