Automatically monitor changes to python

hi all! I am using the Frappe framework for development, and after modifying python, I always need to run bench migrate and bench restart. Is there any way to avoid repeating these operations?

Hi @Franklin,

If not enabled then please enable the developer mode.

bench --site [site-name] set-config developer_mode 1

Then restart the bench and check it.

Thank You!

thanks for your reply,but i have already enabled this mode, but I still need to perform those operations to update

Your python changes should update with just bench restart, that works for me.

it works,after restarting the bench,thanks!