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

Fix python call in UF2 generation. #4392

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

fifieldt
Copy link
Contributor

@fifieldt fifieldt commented Aug 5, 2024

The call to generate UF2 files in the platformio custom script was a bare call to python. In some environments, this command won't exist in this way. Instead, use the standard env approach to find the right python.

Without this change, a user may see:
"""
Generating UF2 file
sh: 1: python: not found
"""

Additionally, add the shebang line on line 1 so this script can be executed standalone if needed.

The call to generate UF2 files in the platformio custom script was
a bare call to python. In some environments, this command won't
exist in this way. Instead, use the standard env approach to find
the right python.

Additionally, add the shebang line on line 1 so this script can be
executed standalone if needed.
@thebentern thebentern merged commit 66a4632 into meshtastic:master Aug 5, 2024
100 checks passed
@mrekin
Copy link
Contributor

mrekin commented Aug 5, 2024

Will this work on windows?
I got some error now, but don't know if this change is issue
\x91\xa8\xe1⥬\xa5 \xad\xa5 㤠\xa5\xe2\xe1\xef \xad\xa0\xa9\xe2\xa8 㪠\xa7\xa0\xad\xad\xeb\xa9 \xaf\xe3\xe2\xec. *** [.pio\build\nrf52_promicro_diy_tcxo\firmware.hex] Error 1

@fifieldt fifieldt deleted the fix-python-call branch August 10, 2024 12:08
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

Successfully merging this pull request may close these issues.

3 participants