Code: Select all
/flash
'boot.py'
'main.py'
/example_dir
'mod1.py'
'mod2.py'
'__init__.py'
__all__ = ["mod1", "mod2"]
when i try to call
from example_dir import *
from the REPL, i get no error messages, but nothing seems to happen. I cannot call mod1.somefunction(). When I do, I get the following error
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'mod1' isn't defined
from example_dir import *
should import both mod1 and mod2 and allow me to use their functions