fix no dir bug
This commit is contained in:
parent
d64e5539d4
commit
72003018b6
@ -31,9 +31,12 @@ TODO_TODO_RE = re.compile(
|
|||||||
|
|
||||||
|
|
||||||
def get_files(dirname):
|
def get_files(dirname):
|
||||||
|
print(dirname, not dirname)
|
||||||
if not dirname:
|
if not dirname:
|
||||||
dirname = "~/wiki/"
|
dirname = "~/wiki/"
|
||||||
p = pathlib.Path(dirname[0]).expanduser()
|
else:
|
||||||
|
dirname = dirname[0]
|
||||||
|
p = pathlib.Path(dirname).expanduser()
|
||||||
return p.rglob("*.md")
|
return p.rglob("*.md")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user