Ideal!
The script works without any other errors in the narrow context that I am using it (pckaging an s-record file) so probably curdata and data are fine as they are. My s-record file is generated by objcopy and the name encoded in the S0 record is identical to the output filename specified on the command line, including its suffix. The suffix is determined automatically in my case by the Eclipse IDE (CDT with GNU MCU Eclipse) and in this case is .srec. Because this fails the current replace() call, the...
dfuse-pack.py string error in S-record filename.