diff --git a/nbdev/export2html.py b/nbdev/export2html.py
index 01d127cd0..e5bdfeba2 100644
--- a/nbdev/export2html.py
+++ b/nbdev/export2html.py
@@ -391,7 +391,7 @@ def notebook2html(fname=None, force_all=False, n_workers=None, cls=HTMLExporter,
"Convert all notebooks matching `fname` to html files"
if fname is None:
files = [f for f in Config().nbs_path.glob('*.ipynb') if not f.name.startswith('_')]
- else: files = glob.glob(fname)
+ else: files = list(p.parent.glob(p.name))
if len(files)==1:
force_all = True
if n_workers is None: n_workers=0
diff --git a/nbs/03_export2html.ipynb b/nbs/03_export2html.ipynb
index d2ae4b927..00047e6f3 100644
--- a/nbs/03_export2html.ipynb
+++ b/nbs/03_export2html.ipynb
@@ -1147,7 +1147,7 @@
" \"Convert all notebooks matching `fname` to html files\"\n",
" if fname is None: \n",
" files = [f for f in Config().nbs_path.glob('*.ipynb') if not f.name.startswith('_')]\n",
- " else: files = glob.glob(fname)\n",
+ " else: files = list(p.parent.glob(p.name))\n",
" if len(files)==1:\n",
" force_all = True\n",
" if n_workers is None: n_workers=0\n",