Pycharm keeps adding __init__.py files I don't want

Answered

I mostly use PyCharm for writing out Ansible (I really like its syntax highlighting, etc), and the occasional Bash/Python script.

 

However as of recently, any time I add a new folder, PyCharm keeps automatically placing empty init files in every directory in the path.  I know I probably accidentally changed a setting somewhere, but for the love of me I can't figure out which one/where.

 

Any ideas?

5
2 comments

Hi Vlad! Do you create Directory or Python Package? Second one is assumed to have __init__.py so PyCharm creates it automatically.

0
Avatar
Permanently deleted user

Hi Pavel,

Yes, that would explain it if I accidentally clicked on New -> Python Package instead of Folder.

Thanks!

0

Please sign in to leave a comment.