I have the following folder structure:
project/
setup.py
example/
__init__.py
foo.py
tests/
__init__.py
test_foo.py
test_foo.py contains the 'a' variable with some integer value.
foo.py contains the following:
from tests import test_foo
def load_a():
value = test_foo.a
return value
setup.py contains the following:
from example import foo
a = foo.load_a()
print(a)
When I run setup.py by calling python setup.py I get a ModuleNotFoundError.
Why is that? I am running python 3.6.3.