make romfs pruner script windows compatible

When we open the file handle to write back the lines in binary mode, we don't change the line endings but instead leave them as they were before. This is impotant for Windows users as Python on Windows otherwise adds CRLF endings to the parameter files and they can't be correctly parsed by NuttX any more.
This commit is contained in:
Matthias Grob 2015-09-28 21:28:30 +02:00 committed by Lorenz Meier
parent 8937499f26
commit 5191731f22

View File

@ -76,7 +76,7 @@ def main():
pruned_content += line
# overwrite old scratch file
with open(file_path, "w") as f:
with open(file_path, "wb") as f:
f.write(pruned_content)