Make42
Make42

Reputation: 13088

PyCharm does not recognize project modules after copying project

I copied my project from my internal SSD to my external HDD. When I open my project now, PyCharm does not recognize it properly. Actually main and main2 are python modules (folders with __init__.py files), not just files:

enter image description here

What is going on?

Upvotes: 0

Views: 166

Answers (2)

Felix
Felix

Reputation: 6359

I would go through the files in the .idea folder and look for wrong paths. AFAIK all project settings are stored in that folder, so you should be able to resolve the issue there.

Upvotes: 1

Parthapratim Neog
Parthapratim Neog

Reputation: 4478

Try this.

File -> Settings -> Project:projectName -> Project Structure -> +Add content root.

Upvotes: 1

Related Questions