start programming
start programming

Reputation: 13

Turn PyCharm package back to a directory in Project Tool Window

I don't know how it happened, but a normal PyCharm directory turned into a package that doesn't contain __init__.py

enter image description here

I have tried to import functions from that directory before, could this have caused the problem? (Now I don't import anything from that directory, but it is still a package with a dot) How can I turn it back to a standard directory again? I have tried to add a init.py file and delete it, but it didn't work.

Upvotes: 1

Views: 145

Answers (1)

101
101

Reputation: 8999

Right click the folder -> Mark directory as -> Unmark as Namespace Package.

Upvotes: 1

Related Questions