I have a module with the structure:
- mymodule
- mymodule
__init__.py
core.py
setup.py
__init__.py
contents:
from .core import MyClass
So now when I import my module I have to do:
import mymodule
mymodule.MyClass()
but what I want is:
import mymodule
MyModule()
but I don't want to have to:
from mymodule import MyModule
Can this be done and if so how?