Pycharm keeps adding __init__.py files I don't want
已回答
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?
请先登录再写评论。
Hi Vlad! Do you create Directory or Python Package? Second one is assumed to have __init__.py so PyCharm creates it automatically.
Hi Pavel,
Yes, that would explain it if I accidentally clicked on New -> Python Package instead of Folder.
Thanks!