Update fc_block_decode.py with open

fc-fctelem
Alan Johnston 10 months ago committed by GitHub
parent eb5d4e2f45
commit 7d4451509c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -72,8 +72,8 @@ if __name__ == "__main__":
# print(process.stdout)
# s = io.StringIO(process.stdout)
# for line in s:
ssdv_output_file = open("ssdv_output", "r")
for line in ssdv_output_file:
with open("ssdv_output", "r") as file:
for line in file:
print("line:")
print(line)
if ((line.find("Image ID:")) > 0):
@ -90,7 +90,7 @@ if __name__ == "__main__":
system("sudo mv image_file image_file" + str(image_count))
print("Image count: ")
print(image_count)
# image_count = (image_count + 1) % 256
# image_count = (image_count + 1) % 256
image_index = 0
else:
image_index += 1

Loading…
Cancel
Save

Powered by TurnKey Linux.