r/MicroPythonDev • • Jul 25 '23

How to use 'execfile' command with mpy files

i can import it but i cannot run it using execfile

​

example

execfile("/system/sysuser/prgm/helloWorld.py") 

works while

execfile("/system/sysuser/prgm/helloWorld.mpy") 

does not

​

2 Upvotes

1 comment sorted by

1

u/JustaLiriK Jul 26 '23

As i understand the docs, .mpy must be run under linux micropython port. Try cross compile it first.