Hi,
I have this kind of path architecture :
main_path/
--------------/__init__.py
--------------/config/
-----------------------/__init__.py
----------------------/common.py
--------------/app_1/
-----------------------/__init__.py
-----------------------/config.py
-----------------------/index.py
I'd like to be able to do so in config.py :
from main_path.config import common
Though it does not work. Python tells me :
$> pwd
..../main_path/app_1
$> python index.py
[...]
ImportError: No module named main_path.config
As far as I understand, this would be possible if i loaded everything up from the main_path, though the aim is to have multiple apps with a common config file.
I tried to add the parent directory to the __path__ in the app_1/__init__.py but it changed nothing.
My next move would be to have a symbolic link, though I don't really like this "solution", so if you have any idea to help me out, this would be much appreciated !
Thanks in advance !