Skip to content

Commit 01b84f7

Browse files
authored
Merge pull request #1390 from lukastk/proc_nbs_fix_issue1389
2 parents db336df + 19118dc commit 01b84f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nbdev/serve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ def proc_nbs(
6262
cfg = get_config()
6363
cache = cfg.config_path/'_proc'
6464
path = Path(path or cfg.nbs_path)
65-
files = nbglob(path, func=Path, file_glob='', file_re='', **kwargs)
65+
files = nbglob(path, func=Path, file_glob=file_glob, file_re=file_re, **kwargs)
6666
if (path/'_quarto.yml').exists(): files.append(path/'_quarto.yml')
67-
if (path/'_extensions').exists(): files.extend(nbglob(path/'_extensions', func=Path, file_glob='', file_re='', skip_file_re='^[.]'))
67+
if (path/'_extensions').exists(): files.extend(nbglob(path/'_extensions', func=Path, file_glob=file_glob, file_re=file_re, skip_file_re='^[.]'))
6868

6969
# If settings.ini or filter script newer than cache folder modified, delete cache
7070
chk_mtime = max(cfg.config_file.stat().st_mtime, Path(__file__).stat().st_mtime)

nbs/api/17_serve.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@
138138
" cfg = get_config()\n",
139139
" cache = cfg.config_path/'_proc'\n",
140140
" path = Path(path or cfg.nbs_path)\n",
141-
" files = nbglob(path, func=Path, file_glob='', file_re='', **kwargs)\n",
141+
" files = nbglob(path, func=Path, file_glob=file_glob, file_re=file_re, **kwargs)\n",
142142
" if (path/'_quarto.yml').exists(): files.append(path/'_quarto.yml')\n",
143-
" if (path/'_extensions').exists(): files.extend(nbglob(path/'_extensions', func=Path, file_glob='', file_re='', skip_file_re='^[.]'))\n",
143+
" if (path/'_extensions').exists(): files.extend(nbglob(path/'_extensions', func=Path, file_glob=file_glob, file_re=file_re, skip_file_re='^[.]'))\n",
144144
"\n",
145145
" # If settings.ini or filter script newer than cache folder modified, delete cache\n",
146146
" chk_mtime = max(cfg.config_file.stat().st_mtime, Path(__file__).stat().st_mtime)\n",

0 commit comments

Comments
 (0)