__import__ not working
Posted: Thu May 13, 2021 9:14 am
Hi,
im using MicroPython v1.14-457-g3bf6c7f12
I've a module foo.bar.foobar
When running
everything is fine, i can use the module.
When running (for some reason i've to do it this way)
the module i not import. Ther is nor rrrormessage while running this command. But i get an
Thank you
im using MicroPython v1.14-457-g3bf6c7f12
I've a module foo.bar.foobar
When running
Code: Select all
import foo.bar.foobar
When running (for some reason i've to do it this way)
Code: Select all
__import__("foo.bar.foobar")
Any ideas?AameError: name 'foo' isn't defined
Thank you