Browse Source

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.
sbg
Matthias Grob 9 years ago committed by Lorenz Meier
parent
commit
5191731f22
  1. 2
      Tools/px_romfs_pruner.py

2
Tools/px_romfs_pruner.py

@ -76,7 +76,7 @@ def main(): @@ -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)

Loading…
Cancel
Save