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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -