diff --git a/boot/boot.js b/boot/boot.js index f4343ae34..4be9251d2 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1942,7 +1942,7 @@ $tw.boot.startup = function(options) { // For writable tiddler files, a hashmap of title to {filepath:,type:,hasMetaFile:} $tw.boot.files = Object.create(null); // System paths and filenames - $tw.boot.bootPath = path.dirname(module.filename); + $tw.boot.bootPath = options.bootPath || path.dirname(module.filename); $tw.boot.corePath = path.resolve($tw.boot.bootPath,"../core"); // If there's no arguments then default to `--help` if($tw.boot.argv.length === 0) {