mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fix_style.py: Ignore generated key headers
This commit is contained in:
parent
678b2b15c3
commit
2e8e19290e
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue