Skip to content

Commit 5d12e64

Browse files
committed
file check
1 parent 7140388 commit 5d12e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build_notebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
slug = sys.argv[1]
55

66
book = False
7-
if os.exists("index.md") and os.path.getsize("index.md") > 0:
7+
if os.path.isfile("index.md") and os.path.getsize("index.md") > 0:
88
book = True
99

1010
if book is True:

0 commit comments

Comments
 (0)