mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Allow specifying a custom boot path (#2990)
This commit is contained in:
parent
df1f7e9798
commit
f4496d8fd3
@ -1942,7 +1942,7 @@ $tw.boot.startup = function(options) {
|
|||||||
// For writable tiddler files, a hashmap of title to {filepath:,type:,hasMetaFile:}
|
// For writable tiddler files, a hashmap of title to {filepath:,type:,hasMetaFile:}
|
||||||
$tw.boot.files = Object.create(null);
|
$tw.boot.files = Object.create(null);
|
||||||
// System paths and filenames
|
// 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");
|
$tw.boot.corePath = path.resolve($tw.boot.bootPath,"../core");
|
||||||
// If there's no arguments then default to `--help`
|
// If there's no arguments then default to `--help`
|
||||||
if($tw.boot.argv.length === 0) {
|
if($tw.boot.argv.length === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user