From b5590c432d94d469b720823bbb44c9e1bf32bf6e Mon Sep 17 00:00:00 2001 From: loayshaqir1 Date: Mon, 23 Oct 2023 19:48:05 +0300 Subject: [PATCH] chdir to nbs --- pre_nbdev_preview.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pre_nbdev_preview.py b/pre_nbdev_preview.py index 92fb5d48..991b38a8 100644 --- a/pre_nbdev_preview.py +++ b/pre_nbdev_preview.py @@ -1,3 +1,4 @@ +import os from nbdev.quarto import nbdev_docs from nbdev.processors import FilterDefaults as filter_defaults_old from nbdev.process import NBProcessor @@ -6,7 +7,5 @@ def FilterDefaults(nb): procs = [x for x in filter_defaults_old().procs() if x.__name__ != 'clean_magics'] return NBProcessor(nb=nb, procs=procs).process() -import os -print(os.getcwd()) -print(os.listdir()) +os.chdir(os.path.join(os.getcwd(),'nbs')) nbdev_docs(path=os.getcwd()) \ No newline at end of file