diff options
author | yenatch <yenatch@gmail.com> | 2016-01-28 23:20:10 -0500 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2016-01-28 23:20:10 -0500 |
commit | 0b156e7bd6b06abe40b2ba9c07e53dc11b815a6a (patch) | |
tree | 49a4d1019624e6ac0a38e2321abc6c455154c35d | |
parent | 90a3365a80dcf8b39c2c392e4756f47570b4cca5 (diff) |
Don't traverse includes that are commented out.
-rw-r--r-- | pokemontools/scan_includes.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pokemontools/scan_includes.py b/pokemontools/scan_includes.py index d2046dc..75fd316 100644 --- a/pokemontools/scan_includes.py +++ b/pokemontools/scan_includes.py @@ -12,6 +12,9 @@ includes = set() def scan_file(filename): for line in open(filename): + if 'INC' not in line: + continue + line = line.split(';')[0] if 'INCLUDE' in line: include = line.split('"')[1] includes.add(include) |