fix no dir bug

This commit is contained in:
James Turk 2024-07-27 03:10:25 -04:00
parent d64e5539d4
commit 72003018b6

View File

@ -31,9 +31,12 @@ TODO_TODO_RE = re.compile(
def get_files(dirname):
print(dirname, not dirname)
if not dirname:
dirname = "~/wiki/"
p = pathlib.Path(dirname[0]).expanduser()
else:
dirname = dirname[0]
p = pathlib.Path(dirname).expanduser()
return p.rglob("*.md")