Usage of relative imports in Python has one drawback, you will not be able to run the modules as standalones anymore because you will get an exception: ValueError: Att
So far the only solution I found was not to use relative imports at all.
Due to current limitation, I'm wondering when someone is supposed to use relative imports in python.
On all configurations that I used the sys.path
contained the current directory as first argument so just use import foo
instead of from . import foo
because it will do the same.