I have a python package that is stubbed out like this:
<main package>
|-> __init__.py
<sub package1>
|-> __init__.py
|-> admin.py
|-> <other python files>
<sub package 2>
|-> __init__.py
|-> <other python files>
in the main package init.py I did the following:
import subpackage1
import subpackage2
__version__ = "1.2.1a"
When I go to use the package, I run into issue with imports
from mainpackage import subpackage1 # works
admin = subpackage1.admin #fails
from mainpackage.subpackage1 import admin # works
Should I be able to directly call the admin module from subpackage1? Is there something I'm missing?
Thanks