From 0b156e7bd6b06abe40b2ba9c07e53dc11b815a6a Mon Sep 17 00:00:00 2001 From: yenatch Date: Thu, 28 Jan 2016 23:20:10 -0500 Subject: Don't traverse includes that are commented out. --- pokemontools/scan_includes.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3