Use pathclass.cwd.

This commit is contained in:
Ethan Dalool 2020-09-22 01:56:49 -07:00
parent 9a891b3375
commit d91fcf121b

View file

@ -659,7 +659,7 @@ def markdown_flask(core_filename, port, *args, **kwargs):
if core_filename.is_dir: if core_filename.is_dir:
cwd = core_filename cwd = core_filename
else: else:
cwd = pathclass.Path('.') cwd = pathclass.cwd()
def handle_path(path): def handle_path(path):
if path.extension == '.md': if path.extension == '.md':