diff --git a/lisa/_kmod.py b/lisa/_kmod.py index 0076267d847117c1d8ad55dd35287ea50256eb23..00022d0acdcea1003fbaaf9674eecfb75651c7c7 100644 --- a/lisa/_kmod.py +++ b/lisa/_kmod.py @@ -2227,8 +2227,12 @@ class KmodSrc(Loggable): :type extra: dict(str, str) """ def get_files(root, dirs, files): - for f in files: - yield (Path(root) / f) + root = Path(root) + if root.name == '__pycache__': + return + else: + for f in files: + yield (root / f) path = Path(path).resolve() src = {