Unit_Test/
__init__.py
widgets/
__init__.py
In Unit_Test/__init__.py
:
from .. widgets import PathPicker
I get the following error: ValueError: Attempted relative import in non-package
widgets/__init__.py
has a class named PathPicker
.
Edit: In regards to the comment below, I am running the script from pyCharm. I opened the project from the folder 'lib' in this directory: lib\pt_hil\utilities\PT_HIL_Interface_Utils\widgets