eerimoq / bincopy

Mangling of various file formats that conveys binary information (Motorola S-Record, Intel HEX, TI-TXT, Verilog VMEM, ELF and binary files).
MIT License
109 stars 38 forks source link

module entry point is broken #23

Closed mzihlmann closed 3 years ago

mzihlmann commented 3 years ago

after updating 17.9 -> 17.10, bincopy can no longer be used as a module entry point

python -m bincopy now returns

NameError: name 'main' is not defined

i havent investigated the error properly myself, but in bincopy.py there are two main shields which looks fishy to me.

https://github.com/eerimoq/bincopy/blob/master/bincopy.py#L321 https://github.com/eerimoq/bincopy/blob/master/bincopy.py#L2017

thank you for your great work!

eerimoq commented 3 years ago

True, I accidently added another main(). Will remove it and create a new release.

Thanks for reporting!

mzihlmann commented 3 years ago

awesome!! thank you so much! 🏆

eerimoq commented 3 years ago

Fix published to PyPI.

mzihlmann commented 3 years ago

awesome works!