diff --git a/qubesidle/idleness_monitor.py b/qubesidle/idleness_monitor.py index 81f0cee..b8d6381 100644 --- a/qubesidle/idleness_monitor.py +++ b/qubesidle/idleness_monitor.py @@ -21,7 +21,7 @@ import os import asyncio import subprocess -import pkg_resources +import importlib.metadata TIMEOUT_SECONDS = 15 * 60 @@ -37,8 +37,8 @@ def load_watchers(self): :return: None """ - for entry_point in pkg_resources.iter_entry_points( - 'qubes_idle_watcher'): + for entry_point in importlib.metadata.entry_points( + group='qubes_idle_watcher'): self.add_watcher(entry_point.load()()) def add_watcher(self, watcher):