verify a tiddlywiki.info exists after chdir into wiki folder
This commit is contained in:
parent
a48f527ec8
commit
ba8f7d6df1
7
tzk.py
7
tzk.py
@ -167,6 +167,11 @@ if not args._cls.cmd == "init":
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
fail(f"Tried to change directory into the wiki_folder '{cm.wiki_folder}' "
|
fail(f"Tried to change directory into the wiki_folder '{cm.wiki_folder}' "
|
||||||
f"specified in your config file, but that directory does not exist.")
|
f"specified in your config file, but that directory does not exist.")
|
||||||
# TODO: confirm we're in the right directory
|
|
||||||
|
if not os.path.exists("tiddlywiki.info"):
|
||||||
|
fail(f"After changing directory into {cm.wiki_folder} per your config file: "
|
||||||
|
f"Expected a 'tiddlywiki.info' file in {os.getcwd()}. "
|
||||||
|
f"Please check that your wiki is initialized "
|
||||||
|
f"and you specified the correct wiki_folder_name.")
|
||||||
|
|
||||||
args._cls().execute(args)
|
args._cls().execute(args)
|
||||||
|
Loading…
Reference in New Issue
Block a user