I have this directory
---App
-----Main.py
-----SubFolder1
-------Function1.py
-----SubFolder2
-------Function2.py
-----SubFolder3
-------Utility.py
I have some functions in Utility, which I need to import to Main and to Function1
In main.py i use this pseudocode
from SubFolder3.Utility import SomeFunction
SomeFunction()
How I can import SomeFunction from Utility.py into Function1.py I don't have any idea how import work in python, despite of reading documentation and countless stackoverflow question treads.
P.S. I can't move Utility.py into SubFolder1 + I need to import SomeFuncion2 from Utility.py to Function2.py
I used literaly everything, that i could find in the internet. Some sys.path nonsense and various staff with init.py files. Maybe I do this wrong, idk