@@ -0,0 +1,894 @@
+import time%0Afrom watchdog.observers import Observer%0Afrom watchdog.events import PatternMatchingEventHandler%0A%0A%0Aclass ScriptModifiedHandler(PatternMatchingEventHandler):%0A    patterns = %5B'*.py'%5D%0A%0A    def __init__(self):%0A        super(ScriptModifiedHandler, self).__init__()%0A%09%09# you can add some init code here%0A%0A    def process(self, event):%0A        print(event.src_path, event.event_type)%0A%0A    def on_modified(self, event):%0A        self.process(event)%0A%09%09%0A%09def on_moved(self, event):%0A%09%09pass%0A%09%09%0A%09def on_deleted(self, event):%0A%09%09pass%0A%09%09%0A%09def on_created(self, event):%0A%09%09pass%0A%0A%0Aif __name__ == '__main__':%0A    observer = Observer()%0A    path = '.'%0A    event_handler = ScriptModifiedHandler()%0A    observer.schedule(event_handler, path, recursive=True)%0A    observer.start()%0A    try:%0A        while True:%0A            time.sleep(1)%0A    except KeyboardInterrupt:%0A        observer.stop()%0A    observer.join()%0A   %0A

Add watchdog that monitors scripts editing