diff --git a/swh/__init__.py b/swh/__init__.py
index de9df0686bf3cc8a381e3adf4dd9e12ceecbf000..f14e196529632bc4e37f7e7deb0b49db4742a423 100644
--- a/swh/__init__.py
+++ b/swh/__init__.py
@@ -1,4 +1,4 @@
+from pkgutil import extend_path
 from typing import Iterable
 
-__path__ = __import__('pkgutil').extend_path(__path__,
-                                             __name__)  # type: Iterable[str]
+__path__ = extend_path(__path__, __name__)  # type: Iterable[str]