Skip to content

Commit cf5065c

Browse files
authored
Merge pull request #5901 from cmens23/netbeans_exporter
Netbeans Exporter Bugfix
2 parents 702eaff + 1ea22c1 commit cf5065c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/export/nb/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,11 @@ def get_netbeans_file_list(file_list):
325325
if cur_dir and prev_dir != cur_dir:
326326
# evaluate all matched items (from current and previous list)
327327
matched = []
328-
for element in dir_list:
329-
if element in prev_dir_list:
330-
matched.append(element)
328+
# Compare the Element in Previous Dir with the Elements in Current Dir
329+
# and add the equal Elements to the match-List
330+
for elem_prev_dir, elem_cur_dir in zip(prev_dir_list, dir_list):
331+
if elem_prev_dir == elem_cur_dir:
332+
matched.append(elem_cur_dir)
331333

332334
# calculate difference between matched and length
333335
diff = dir_depth - len(matched)

0 commit comments

Comments
 (0)