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.


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. https://github.com/frappe/frappe/issues/16618