Hello there,
for educational purpose I am trying to extend Mikropython. As a first step I want to extend it with my own py. file and make a frozen .mpy file of it. The process is clear but I wondering if there is a recommended directory for my own extension (i. e. drivers?) Thanks a lot for your help.
Best regards,
Werner
PS. At the moment I have made a subdirectory "webby" in the drivers folder and I have placed a simple file "web_ext.py" there. After editing the manifest.py in the ports/rp2 directory I have build the sourcecode and I am able to access my file in two ways:
1. import web_ext
In this case I can access my functions with:
web_ext.func1()
2. from web_ext import *
In this case I can access all the functions directly
3. from web_ext import func1
And finally in this case I can only func1 directly
That seems logically for me, but a little different from CPython, where I can use a folder as a module name and import single files but not functions. Or am I wrong?