What should MICROPYPATH be for Unix port? #11779
-
I built the Unix port (on Ubuntu Linux) and immediately found that without MICROPYTHONHOME defined at all, even "import machine" or "import pyb" fail. On the Micropython running on my Raspberry Pi Pico, I see sys.path is ['', '.frozen', '/lib'] and yet everything works great. I ran the tests ("make tests") and all the ones that ran succeeded. I see lots of example code too (for example examples/network/http_server.py) but they all start having assumed you've already successfully imported modules (like network) that I am so far unable to import. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The unix port doesn't have |
Beta Was this translation helpful? Give feedback.
-
OK, makes sense. I'll have to write some stubs then; the idea is to test (to the extent possible) on Linux. |
Beta Was this translation helpful? Give feedback.
The unix port doesn't have
machine
orpyb
modules since it generic and doesn't target any specific OS or hardware.