Skip to content
Discussion options

Josverl
Jul 5, 2024
Collaborator Sponsor

You must be logged in to vote

Good to see the containers getting some love! :)

In case it's not obvious, to create these containers I just build the default unix build - and those are the standard paths for the unix build...

The //.micropython/lib is the only interesting one - if I run as root (inside WSL) it looks different:

> docker run -it --rm micropython/unix
MicroPython v1.23.0 on 2024-06-13; linux [GCC 12.2.0] version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> import sys; print(sys.path)
['', '.frozen', '/root/.micropython/lib', '/usr/lib/micropython']
>>>

At a guess, I'd say that //.micropython/lib is the home folder of the user that docker runs under - so perhaps your user doesn't have a home folder?

In an…

Replies: 2 comments 2 replies

Comment options

mattytrentini
Jul 5, 2024
Collaborator Sponsor

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

Josverl Jul 5, 2024
Collaborator Author Sponsor

Answer selected by Josverl
Comment options

Josverl
Jul 5, 2024
Collaborator Author Sponsor

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

mattytrentini Jul 6, 2024
Collaborator Sponsor

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