I have a directory like this:
Project Folder
├─main.py
├─Utils
│ └─util1.py
└─Plugins
└─plugin1.py
How can I import util1.py directly from plugin1.py? I tried using importlib.import_module('Utils.util1', '..')
, but that didn't work. from ..Utils import util1
and from .. import Utils.util1
also did not work (ValueError: attempted relative import beyond top-level package
)
Please note: its not utils and plugins in my directory, I just named them like that here for ease.