--- ./src/ansiblelint/__main__.py.orig 2025-01-30 06:43:48 +++ ./src/ansiblelint/__main__.py 2025-01-30 19:02:17 @@ -456,7 +456,7 @@ if (parent / "ansible").exists() and str(parent) not in paths: inject_paths.append(str(parent)) - if not os.environ.get("PYENV_VIRTUAL_ENV", None): + if not os.environ.get("PYENV_VIRTUAL_ENV","NONE"): if inject_paths and not all("pipx" in p for p in inject_paths): print( # noqa: T201 f"WARNING: PATH altered to include {', '.join(inject_paths)} :: This is usually a sign of broken local setup, which can cause unexpected behaviors.",