Skip to content

Commit 227dad1

Browse files
committed
sort project files. update generated images
1 parent 4f4d132 commit 227dad1

File tree

150 files changed

+2
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+2
-5
lines changed

python_generator/create_requirement_image.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,20 +122,17 @@ def make_header(position, learn_guide_project):
122122
except ValueError:
123123
pass
124124

125-
126-
for i, file in enumerate(project_files_to_draw):
125+
for i, file in enumerate(sorted(project_files_to_draw)):
127126
cur_file_extension = file.split(".")[-1]
128-
#print("checking {}".format(cur_file_extension))
129127

130128
if cur_file_extension in FILE_TYPE_ICON_MAP:
131-
#print("found icon for {}".format(cur_file_extension))
132129
cur_file_icon = FILE_TYPE_ICON_MAP[cur_file_extension]
133130
else:
134131
cur_file_icon = file_empty_icon
135132
make_line(file, (position[0] + INDENT_SIZE, position[1] + (LINE_SPACING * (6 + i ))), icon=cur_file_icon)
136133
rows_added += 1
137134

138-
for i, file in enumerate(project_folders_to_draw):
135+
for i, file in enumerate(sorted(project_folders_to_draw)):
139136
make_line(file, (position[0] + INDENT_SIZE, position[1] + (LINE_SPACING * (6 + i + len(project_files_to_draw)))),
140137
triangle_icon=right_triangle)
141138
rows_added += 1
24 Bytes
0 Bytes
7 Bytes
0 Bytes
1 Byte
0 Bytes
-1 Bytes
-38 Bytes
12 Bytes

0 commit comments

Comments
 (0)