directory icon looks as package
已回答
I am creating a directory in the project but the directory looks as package.How can I fix it?
请先登录再写评论。
Hello! Could you please specify your Pycharm version? Works correctly for me in Pycharm 2017.3.3.
I'm running PyCharm 2018.1.1. When I create a directory the icon in the Project view is a folder icon with a dot in the center. A directory is supposed to be a solid folder icon and a package is supposed to be a folder with a dot. To create the directory I right click on the project folder and select New/Directory. The directory looks ok, it does not contain the __init__.py file that would be there if it was a package.
Is something not configured correctly with my project? It's just a plain Python project.
It seems this is happening on my Python 3 projects, but not my Python 2 projects.
Hi Tom! Directories without dunder init are considered as namespace packages in Python 3, and the dot here means "package" no matter is it a namespace or an old style package. Do you prefer to see the dot only on the old style packages?