I have the fallowing directory tree:
foo_project/
├── foo/
│ ├── foo_conversor.py
│ ├── __init__.py
│ └── __pycache__/
│
├── foo.py
└── __pycache__/
I'm trying to import a class named Foo
that is inside foo.py
at foo_conversor.py
, I've tried a lot of ways but I can't understand how to do this import. Can someone help me? It's any problem with __init__.py
?
I already tried:
from ..foo import Foo
from .. import Foo
from . import Foo
from foo import Foo
I've already read a lot fo answers here but none helped me.