Do modules support nested folders?

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

Do modules support nested folders?

Post by 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: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Do modules support nested folders?

Post by 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
Index to my micropython libraries.

Post Reply