# Watchdog script to check if there has been any change in a particular# package. This is to ensure that the packages stay up-to-date.importsysimportsubprocessimporttimeimportloggingfromwatchdog.observersimportObserverfromwatchdog.eventsimportLoggingEventHandlerclassShellEventHandler(LoggingEventHandler):defon_modified(self,event):subprocess.call(['./snapshot_from_repo.sh'])if__name__=="__main__":logging.basicConfig(level=logging.INFO,format='%(asctime)s - %(message)s',datefmt='%Y-%m-%d %H:%M:%S')