Skip to content

Commit 47924ff

Browse files
committed
Allow parent code path to be created if it doesn't exist.
1 parent edfac75 commit 47924ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make_ipynb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def make_code(chapter):
7070

7171
# Output notebook path.
7272
output_dir = Path('code/%s/' % chapter)
73-
output_dir.mkdir(exist_ok=True)
73+
output_dir.mkdir(parents=True, exist_ok=True)
7474
path = (output_dir / file.name).with_suffix('.ipynb')
7575

7676
# Export the AST into a Jupyter notebook.

0 commit comments

Comments
 (0)