Fix px_romfs_pruner.py to skip .data files

The .data extension was missing but used in some places; this would cause the pruner to fail with a UnicodeDecodeError.
This commit is contained in:
James Harrison 2014-10-14 22:18:51 +01:00
parent fd983ed8e6
commit 6ec338c23f
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ def main():
for (root, dirs, files) in os.walk(args.folder):
for file in files:
# only prune text files
if ".zip" in file or ".bin" in file or ".swp" in file:
if ".zip" in file or ".bin" in file or ".swp" in file or ".data" in file:
continue
file_path = os.path.join(root, file)