Skip to content
Discussion options

You must be logged in to vote

I think what's happened here is you've used a relative path (i.e. ../../path/to/xxx.py) and this has ended up in the mpy file. mpy-tool should probably handle this, but in the meantime you can use the -s argument to mpy-cross to override the source name. e.g. mpy-cross -o xxx.mpy -s xxx.py ../../path/to/xxx.py.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@QiaoTuCodes
Comment options

Answer selected by jimmo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants
Converted from issue

This discussion was converted from issue #9767 on October 28, 2022 08:27.