Skip to content

Commit 5963729

Browse files
committed
fix for projects with only code.py
1 parent 8f2e717 commit 5963729

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Diff for: README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ It will create images in the `generated_images` directory.
2020
### Generate Single Learn Guide Image
2121

2222
```shell
23-
python3 create_requirement_images.py --guide [Learn Guide Name]
23+
python3 create_requirement_images.py learn --guide [Learn Guide Name]
2424
# OR
25-
python3 create_requirement_images.py -g [Learn Guide Name]
25+
python3 create_requirement_images.py learn -g [Learn Guide Name]
2626
```
27+
28+
### Help Command
29+
The help command will list all possible commands and arguments.
30+
31+
```shell
32+
python3 create_requirement_images.py --help
33+
```

Diff for: create_requirement_images.py

+4
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ def make_sd_dir(position):
415415
PADDING + (LINE_SPACING * (7 + project_files_count)),
416416
)
417417
make_libraries(final_list_to_render, _libraries_position)
418+
419+
if project_files_count == 0:
420+
project_files_count = 1
421+
418422
_sd_dir_position = (
419423
76,
420424
PADDING

0 commit comments

Comments
 (0)