Skip to content

Commit 42e29d1

Browse files
committed
nbdev_export: removed obsolete as_path=True in nbglob call
1 parent 24130b5 commit 42e29d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nbdev/doclinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def nbdev_export(
133133
**kwargs):
134134
"Export notebooks in `path` to Python modules"
135135
if os.environ.get('IN_TEST',0): return
136-
files = nbglob(path=path, as_path=True, sort_by=lambda path_str: Path(path_str).name, **kwargs)
136+
files = nbglob(path=path, sort_by=lambda path_str: Path(path_str).name, **kwargs)
137137
for f in files: nb_export(f)
138138
add_init(get_config().lib_path)
139139
_build_modidx()

nbs/api/doclinks.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@
376376
" **kwargs):\n",
377377
" \"Export notebooks in `path` to Python modules\"\n",
378378
" if os.environ.get('IN_TEST',0): return\n",
379-
" files = nbglob(path=path, as_path=True, sort_by=lambda path_str: Path(path_str).name, **kwargs)\n",
379+
" files = nbglob(path=path, sort_by=lambda path_str: Path(path_str).name, **kwargs)\n",
380380
" for f in files: nb_export(f)\n",
381381
" add_init(get_config().lib_path)\n",
382382
" _build_modidx()"

0 commit comments

Comments
 (0)