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