Skip to content

Commit fee4451

Browse files
committed
cleanup debug prints
1 parent cbeca74 commit fee4451

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

create_requirement_images.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,6 @@ def make_header(position, project_files):
226226
triangle_icon=down_triangle,
227227
)
228228
rows_added += 1
229-
if file == "midi":
230-
#print(project_folders_to_draw)
231-
pass
232-
extra_sub_file_space = 0
233229
for j, sub_file in enumerate(sorted(project_folders_to_draw[file])):
234230
extra_rows += 1
235231
cur_file_extension = sub_file.split(".")[-1]
@@ -249,7 +245,6 @@ def make_header(position, project_files):
249245
icon=cur_file_icon
250246
)
251247
rows_added += 1
252-
extra_sub_file_space = extra_rows
253248

254249
make_line(
255250
"lib",

get_imports.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,9 @@ def get_files_for_project(project_name):
111111
"""Get the set of files for a learn project"""
112112
found_files = set()
113113
project_dir = "{}/{}/".format(LEARN_GUIDE_REPO, project_name)
114-
# root level
115-
full_tree = os.walk(project_dir)
116114

115+
full_tree = os.walk(project_dir)
117116
root_level = next(full_tree)
118-
if project_name == "NeoTrellis_M4_MIDI_Synth":
119-
print(root_level)
120117

121118
for file in root_level[2]:
122119
if "." in file:
@@ -126,19 +123,9 @@ def get_files_for_project(project_name):
126123
found_files.add(file)
127124

128125
for _dir in root_level[1]:
129-
if project_name == "NeoTrellis_M4_MIDI_Synth":
130-
print(_dir)
131-
# TODO: second item needs to be a tuple
132126
dir_tuple = (_dir, tuple())
133127
for cur_tuple in os.walk(project_dir):
134-
if project_name == "NeoTrellis_M4_MIDI_Synth":
135-
print(cur_tuple)
136-
#print("{} - {}".format(cur_tuple[0].split("/")[-1], _dir))
137-
#print(cur_tuple)
138128
if cur_tuple[0].split("/")[-1] == _dir:
139-
# TODO: can't use add or append to add to a tuple
140-
# TODO: need to use + to make new tuple or * unpacking
141-
# https://stackoverflow.com/questions/16730339/python-add-item-to-the-tuple
142129
for _sub_dir in cur_tuple[1]:
143130
dir_tuple = (dir_tuple[0], dir_tuple[1] + (_sub_dir,))
144131
for _sub_file in cur_tuple[2]:

0 commit comments

Comments
 (0)