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:

    erpnext/www/shop-by-category/__init__.py 
    frappe/www/_test/assets/__init__.py

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.

https://github.com/frappe/frappe/pull/16617
https://github.com/frappe/erpnext/pull/30713

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