I have the following code all in a file named baz.py
# foo.py
class Foo:
def __init__(self,foo):
self.foo = foo
# bar.py
class Bar:
def __init__(self,bar):
self.bar = bar
# some functions
# baz.py
# calling some functions from Bar
I would like to organize my project in the following manner:
project|-model|-foo.py
|-bar.py
|-__init__.py
|-test |-baz.py
|-__init__.py
And run baz.py
To do so I added at the top of baz.py the following
from project.model import foo, bar
However I get the error "No module named project" when using
C:\...\project> & C:/Python39/python.exe "c:/.../project/test/baz.py"