Imports from current directory not working

contentroot/app/tasks.py
contentroot/app/rmn.py

tasks.py:

from app.rmn import rmnhelper

This works on my “old” macbook in PyCharm but for some reason i can't configure it to work on this new macbook.  Same PyCharm versions, same code base.

contentroot is set in pythonpath 

Right-clicking on the app directory, it has a circle in it and “mark as namespace” is greyed out

Any thoughts?  Kinda stuck…

0

Hi Ccohen, Just to clarify - are you seeing “unresolved references” highlighted in the editor, or is the issue that the code fails to run?
To better understand the setup, could you please share a screenshot of the Project tool window along with the configuration under File | Settings | Project | Project Structure?

0

请先登录再写评论。