I have the following directory structure:
folder1
\folder2
file2.py
\folder3
file3.py
In file2.py there is a class that i would use in file3.py
The Problem is, that the from xx import yy
command does not work, because the file2.py is not in the subdirectory of the file3.py
The following command from ..folder2.file2 import myclass_in_file2
does not work, too (Python 3.8).
Is there a easy and clear way to do this?
Tricks with "sys-path" and "exec" modifications may work, but I will not use them personally.