Ruby's watchr equivalent in Python?
问题 I like the concept of watchr: it monitor the file system and run a callback when something changes. Is there a pure Python equivalent? Preferably pip installable. 回答1: You should probably look at watchdog: http://packages.python.org/watchdog/ 回答2: For Windows, there's watcher, that is probably close to what you need although I'm not sure it provides 100% equivalent information. 来源: https://stackoverflow.com/questions/5816346/rubys-watchr-equivalent-in-python