import bgservice as bg bg.watch_dir() input() bg.stop_watching()