python - Pycharm unresolved reference issue -
i have strange pycharm behavior. have project , folder in named core
(see picture details). in have 2 python files: agentmeasurement.py
, collectorbase.py
. now, want import type agentmeasurement
agentmeasurement.py
in collectorbase
, write following: from agentmeasurement import agentmeasurement
. works fine (when run script), pycharm marks unresolved reference.
i tried mark core source root, can't reference other folders package (i.e. from core.agentmeasurement import agentmeasurement
) , can write from agentmeasurement import agentmeasurement
makes code unreadable. how can make pycharm work correctly in such case?
Comments
Post a Comment