I've been looking around this site for how I can import a class stored in a folder at the same hierarchy level. What I found is that using ..
should bring me up one folder. Or at least, that is how I read it as that assumption seems to be wrong.
src/
folderStrucutre1/
__init__.py
fileToImport.py <- contains A
folderStrucutre2/
someFile.py
__init__.py
abc.py
Having above folder structure in which fileToImport.py
contains a class named A
. How would I import A
into someFile.py?