Update watcher.py
This commit is contained in:
parent
031322466b
commit
cd38eda645
@ -5,11 +5,11 @@ import threading
|
||||
import subprocess
|
||||
import logging
|
||||
from logging.handlers import TimedRotatingFileHandler
|
||||
from watchdog.observers import Observer
|
||||
from watchdog.observers.polling import PollingObserver as Observer
|
||||
from watchdog.events import FileSystemEventHandler
|
||||
|
||||
# Configuration
|
||||
WATCH_DIR = os.environ.get("WATCH_DIR", "/data")
|
||||
WATCH_DIR = os.environ.get("WATCH_DIR", "/books")
|
||||
DEBOUNCE_DELAY = int(os.environ.get("DEBOUNCE_DELAY", "2"))
|
||||
DEBUG = os.environ.get("DEBUG", "false").lower() == "true"
|
||||
LOG_DIR = os.path.join(WATCH_DIR, "/logs")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user