Skip to content

Commit b661e87

Browse files
committed
Tweaks to make_structure
1 parent 0b58082 commit b661e87

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

make_structure.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ def main():
3434

3535
# Convert casing: "Example code" to "example-code"
3636
normalized_chapter_name = chapter_name.replace(' ', '-').lower()
37-
subprocess.run(["mkdir", "-p", os.path.join(os.getcwd(),
38-
normalized_chapter_name)])
37+
# Make directories
38+
subprocess.run(["mkdir", "-p", os.path.join(
39+
chapter_num,
40+
os.getcwd(),
41+
normalized_chapter_name)])
42+
# Make README files
3943
subprocess.run(["touch", os.path.join(os.getcwd(), normalized_chapter_name,
4044
"README.md")])
4145

0 commit comments

Comments
 (0)