Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use comment blocks when appropriate #511

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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