Skip to content

Instantly share code, notes, and snippets.

@samuelcolvin
Created April 8, 2022 15:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelcolvin/f66f1798159181817f9f573addfac9c1 to your computer and use it in GitHub Desktop.
Save samuelcolvin/f66f1798159181817f9f573addfac9c1 to your computer and use it in GitHub Desktop.
from pathlib import Path
from watchfiles import watch
from devtools import debug
THIS_DIR = Path(__file__).parent
for changes in watch(THIS_DIR, debug=True):
debug(changes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment