from watchgod import watch from printer import printer base = "./" def main(): for changes in watch('./images'): print(changes) for change in changes: printer(base + "/" + change[1])