Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py2hex? #73

Open
lnw opened this issue Apr 17, 2021 · 1 comment
Open

py2hex? #73

lnw opened this issue Apr 17, 2021 · 1 comment

Comments

@lnw
Copy link

lnw commented Apr 17, 2021

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
Copy link
Contributor

The py2hex command line tool should be available when uflash is pip installed. This is done by setting the "console scripts" entry point in:

uflash/setup.py

Lines 40 to 42 in 147ea94

entry_points={
"console_scripts": ["uflash=uflash:main", "py2hex=uflash:py2hex"],
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants