Detect if a python module changes and then reload

一笑奈何 提交于 2019-11-29 02:56:47
Paystey

Detect File Change Without Polling

Coupled with you already knowing how to reload your module this answer pretty much fills it out. It uses Inotify to "notify" (see what they did there) the program when the file is modified.

Nick ODell

I would look at all of the files, and detect if a file was modified. If it was, I would reload it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!