I have the following project structure:
Project
|
---code
| |
| ---__init__.py
| ---X.py
| ---Y.py
| ---Z.py
|
----resources
|
---__init__.py
---csv/
|
--- file1.csv
--- file2.csv
---__init__.py
Inside X.py and Y.py I have an import from code.Z import Z
(where Z is the name of the class inside, and also a filename. When I want to run Z.py, it gives: `ModuleNotFoundError: No module named 'code.Z'; 'code' is not a package.
What's wrong?