Is there anyway I can import modules to a package level?
for example, consider the following package:
- conf
- __init__.py
- general.py
Now I have another package:
- conf2
- __init__.py
I would like to be able to use import conf2.general. That means, somehow importing the general.py module to conf2 package.
EDIT:
I have added the following import to conf2/__init__.py:
from conf import general
Now, I can use from conf2 import general and it works fine. However, what I would like to achieve is import conf2.general. Is that possible?
Contents of
conf2/__init__.py:to demonstrate the extra info from the edit, also:
To demonstrate:
again, to answer the edit: