How do I use "relative static" paths in my import path
For example, if I have an app named asdf, with the following directory
asdf/
+- asdf/
| +- main.py
| +- config.py
+- tests/
etc.
Currently I have in my main.py...
from config import Config
I want to be able to use...
from asdf.config import Config
The reason why is that the modules are getting moved around as the project is still in its infancy, relatively speaking. (no pun intended)
You can easily find a workaround this problem. But presence of modules/folders with same name as its parent always causes issues, especially when both the parent and child module are in python path. Since django1.6, django also names project folder and internal folder similarly, which causes lot of issues, especially in testing.
So as a norm try to avoid naming modules same as parent.