Extra __init__.py

On a production site I noticed (using git status, I expected it to be clean / no file created or amended) following files are there:


Is it possible?

If yes, which process or operation create these files?

These files should’ve been checked-in version control. Which is done now.


As for why they are created, it’s because python’s module system expects __init__.py in submodules. This however should only be done in developer mode.

Open issue in case anyone wants to work on it. Dont add `__init__.py` file when developer mode isn't active · Issue #16618 · frappe/frappe · GitHub