I am trying to define a few custom python modules to be used in my scripts. My custom module works pretty well, except for the fact that i can not import in into a script.
My idea was to do something like:
Code: Select all
import my_module
While True:
module_obj.func()
Bu then i get the following error: No module named 'my_module'.
While the custom module works if i do: my_module.module_obj.func().
To create the custom module I took the pyb module as a reference.
Is there something specific to do to allow the module to be imported into a script??
Thanks in advance,
Christian