Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upBUGFIX: 627 fix include order #628
Conversation
There might be a pythonic way of solving this, but as I'm a beginner im happy to provide at least a fix for the issue. |
First of all, sorry for letting this PR wait for so long, despite me being super happy about every contribution! Besides that simple improvement in readability, do you think you can figure out how to adjust this test-case to assert for the change this PR is making? You should be able run the config tests via If adjusting the test doesn't work for you, after all it's not particularly easy to understand and quite complex/convoluted, please let me know and we find another way. Thanks and cheers |
num_read_include_files += 1 | ||
include_paths.reverse() |
Byron
May 28, 2017
Member
I think this block should be rewritten like this:
files_to_read = include_paths + files_to_read
This makes clearer that included files should be read and merged first.
I think this block should be rewritten like this:
files_to_read = include_paths + files_to_read
This makes clearer that included files should be read and merged first.
Resolves: #627