Skip to content

Commit

Permalink
Fixes #16425: Technique does not appear anymore if some ressources ar…
Browse files Browse the repository at this point in the history
…e defined
  • Loading branch information
VinceMacBuche committed Dec 17, 2019
1 parent 6f58cea commit 67f09ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/ncf.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ def get_all_cf_filenames_under_dir(parent_dir, only_technique_cf):
for file in files:
if only_technique_cf:
if file == "technique.cf":
filenames_add(os.path.join(root, file))
filenames.append(os.path.join(root, file))
elif not file.startswith("_") and file.endswith(".cf"):
filenames_add(os.path.join(root, file))
filenames.append(os.path.join(root, file))
return filenames


Expand Down Expand Up @@ -424,7 +424,6 @@ def get_all_techniques_metadata(include_methods_calls = True, migrate_technique
method_errors = methods_data["errors"]
warnings = methods_data["warnings"]
errors = []

for file in filenames:
with codecs.open(file, encoding="utf-8") as fd:
content = fd.read()
Expand Down

0 comments on commit 67f09ad

Please sign in to comment.