Browse Source

🔨 Fix config-labels.py

FB4S_WIFI^2^2
Scott Lahteine 2 years ago
parent
commit
3a18ba0412
  1. 4
      buildroot/share/scripts/config-labels.py

4
buildroot/share/scripts/config-labels.py

@ -130,7 +130,7 @@ def process_file(subdir: str, filename: str):
# Note: no need to create output dirs, as the initial copy_tree # Note: no need to create output dirs, as the initial copy_tree
# will do that. # will do that.
print(' writing ' + outfilepath) print(' writing ' + str(outfilepath))
try: try:
# Preserve unicode chars; Avoid CR-LF on Windows. # Preserve unicode chars; Avoid CR-LF on Windows.
with outfilepath.open("w", encoding="utf-8", newline='\n') as outfile: with outfilepath.open("w", encoding="utf-8", newline='\n') as outfile:
@ -140,7 +140,7 @@ def process_file(subdir: str, filename: str):
print('Failed to write file: ' + str(e) ) print('Failed to write file: ' + str(e) )
raise Exception raise Exception
else: else:
print(' no change for ' + outfilepath) print(' no change for ' + str(outfilepath))
#---------- #----------
def main(): def main():

Loading…
Cancel
Save