fix_style.py: Ignore generated key headers

This commit is contained in:
def 2020-09-26 21:49:35 +02:00
parent 678b2b15c3
commit 2e8e19290e

View file

@ -8,10 +8,12 @@ import sys
os.chdir(os.path.dirname(__file__) + "/..")
ignore_files = ["src/engine/keys.h", "src/engine/client/keynames.h"]
def recursive_file_list(path):
result = []
for dirpath, dirnames, filenames in os.walk(path):
result += [os.path.join(dirpath, filename) for filename in filenames]
result += filter(lambda p: p not in ignore_files, [os.path.join(dirpath, filename) for filename in filenames])
return result
def filter_cpp(filenames):