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. enter image description here

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

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -