ntoll / uflash

A module and command to easily flash Python onto the BBC's micro:bit device.
http://micropython.org/
MIT License
101 stars 27 forks source link

py2hex? #73

Open lnw opened 3 years ago

lnw commented 3 years ago

The py2hex tool that is described seems to be missing. I see the function in uflash.py, but one still has to add something trivial like

py2hex.py: --->>--- import uflash import sys if name == 'main': uflash.py2hex(sys.argv[1:]) ---<<----

or am I missing some trick here?

carlosperate commented 1 year ago

The py2hex command line tool should be available when uflash is pip installed. This is done by setting the "console scripts" entry point in: https://github.com/ntoll/uflash/blob/147ea945fbe841b0ae17888ab60a60c6080b1225/setup.py#L40-L42