I have directory structure like the following:
MainDir --FooBar --foobar.py, __init__.py
|
Ltests -- foobartest.py, __init__.py
Inside foobartest.py, I am importing
from FooBar.foobar.func_in_foobar import *
__init__.py in foobar contains from .foobar import *
And the init.py is empty in tests folder
But when I try to run the foobartest I get this error
No module named FooBar.foobar.func_in_foobar