Do modules support nested folders?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
mkarliner
Posts: 7
Joined: Fri Sep 09, 2016 10:59 am

Do modules support nested folders?

Postby mkarliner » Tue Jan 10, 2017 9:47 am

BTW - Does the modules directory now support nested folders?
I seem to remember a discussion, but I can't find the conclusion.

Mike

[Moderator note: Please don't hijack other threads - start a new thread for a new topic]

User avatar
pythoncoder
Posts: 1311
Joined: Fri Jul 18, 2014 8:01 am

Re: Do modules support nested folders?

Postby pythoncoder » Wed Jan 11, 2017 7:57 am

If you're talking about frozen bytecode, it seems that the answer is yes. I've frozen the uasyncio library which includes directories such as stmhal/modules/lib/uasyncio

As I understand it you can also put your modules directory anywhere in the filesystem (allowing per-project directories) but I haven't yet tried it.
Peter Hinch


Return to “Development of MicroPython”

Who is online

Users browsing this forum: No registered users and 1 guest