Skip to content

Commit 8c9bd4c

Browse files
committed
fixes #1541
1 parent 6f0ebf3 commit 8c9bd4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nbdev/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def watch_export(nbs:str=None, # Nb directory to watch for changes
188188
run(f'nbdev_export')
189189
def _export(e,lib=lib):
190190
p = e.src_path
191-
if (not '.ipynb_checkpoints' in p and p.endswith('.ipynb') and not Path(p).name.startswith('.~')):
191+
if (not '.ipynb_checkpoints' in p and p.endswith('.ipynb') and not Path(p).name.startswith(('tmp','.~'))):
192192
if e.event_type == 'modified':
193193
time.sleep(0.1)
194194
try: run(f'nb_export --lib_path {lib} "{p}"')

nbs/api/13_cli.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@
330330
" run(f'nbdev_export')\n",
331331
" def _export(e,lib=lib):\n",
332332
" p = e.src_path\n",
333-
" if (not '.ipynb_checkpoints' in p and p.endswith('.ipynb') and not Path(p).name.startswith('.~')):\n",
333+
" if (not '.ipynb_checkpoints' in p and p.endswith('.ipynb') and not Path(p).name.startswith(('tmp','.~'))):\n",
334334
" if e.event_type == 'modified':\n",
335335
" time.sleep(0.1)\n",
336336
" try: run(f'nb_export --lib_path {lib} \"{p}\"')\n",

0 commit comments

Comments
 (0)