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

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -