Skip to content

Commit 3a15edc

Browse files
committed
allow nbglob without settings.ini
1 parent 4484c84 commit 3a15edc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nbdev/_modidx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
'title': 'nbdev',
5757
'tst_flags': 'notest',
5858
'user': 'fastai',
59-
'version': '2.1.0'},
59+
'version': '2.1.1'},
6060
'syms': { 'nbdev.clean': { 'nbdev.clean.clean_jupyter': 'https://nbdev.fast.ai/clean.html#clean_jupyter',
6161
'nbdev.clean.clean_nb': 'https://nbdev.fast.ai/clean.html#clean_nb',
6262
'nbdev.clean.nbdev_clean': 'https://nbdev.fast.ai/clean.html#nbdev_clean',

nbdev/doclinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def build_modidx():
124124
def nbglob(path=None, skip_folder_re = '^[_.]', file_glob='*.ipynb', recursive=True, key='nbs_path',
125125
as_path=False, **kwargs):
126126
"Find all files in a directory matching an extension given a `config_key`."
127-
path = Path(path or config_key(key))
127+
path = Path(path or config_key(key, '.', missing_ok=True))
128128
if recursive is None: recursive=get_config().get('recursive', 'False').lower() == 'true'
129129
res = globtastic(path, file_glob=file_glob, skip_folder_re=skip_folder_re, **kwargs)
130130
return res.map(Path) if as_path else res

nbs/04b_doclinks.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@
415415
"def nbglob(path=None, skip_folder_re = '^[_.]', file_glob='*.ipynb', recursive=True, key='nbs_path',\n",
416416
" as_path=False, **kwargs):\n",
417417
" \"Find all files in a directory matching an extension given a `config_key`.\"\n",
418-
" path = Path(path or config_key(key))\n",
418+
" path = Path(path or config_key(key, '.', missing_ok=True))\n",
419419
" if recursive is None: recursive=get_config().get('recursive', 'False').lower() == 'true'\n",
420420
" res = globtastic(path, file_glob=file_glob, skip_folder_re=skip_folder_re, **kwargs)\n",
421421
" return res.map(Path) if as_path else res"

0 commit comments

Comments
 (0)