Skip to content

Commit

Permalink
Merge pull request #511 from knowledgejunkie/use-comments-for-comments
Browse files Browse the repository at this point in the history
Use comment blocks when appropriate
  • Loading branch information
0xc0170 authored Feb 25, 2024
2 parents 4888862 + c3a6b63 commit b046f9d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions project_generator/init_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@ def _scan(section, directory, extensions):
#get all the folders along the path
dirs = relpath.split(os.path.sep)
for i in range(1, len(dirs)+1):
""" add all combinations of them, because we don't know how they will be referenced in program files
Example - there is a .h file in the path Here\is\include\include.h
We want to catch any possible combo, so add Here, Here\is, and Here\is\include
"""
# add all combinations of them, because we don't know how they will be referenced in program files
# Example - there is a .h file in the path Here\is\include\include.h
# We want to catch any possible combo, so add Here, Here\is, and Here\is\include
data_dict.append(os.path.normpath(os.path.sep.join(dirs[:i])))
else:
data_dict.append(os.path.normpath(os.path.join(relpath, filename)))
Expand Down

0 comments on commit b046f9d

Please sign in to comment.