refactor: Use secrets module for WATCH_PATHS
This commit is contained in:
@@ -34,7 +34,7 @@ def main():
|
||||
watch_flags = flags.MODIFY | flags.CREATE | flags.DELETE | flags.MOVED_FROM | flags.MOVED_TO
|
||||
|
||||
with INotify() as inotify:
|
||||
for path in WATCH_PATHS:
|
||||
for path in secrets.WATCH_PATHS:
|
||||
logging.info(f"Watching {path}")
|
||||
inotify.add_watch(path, watch_flags)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user