--- ./src/ansiblelint/__main__.py.orig	2025-10-27 00:56:52
+++ ./src/ansiblelint/__main__.py	2025-10-27 00:56:52
@@ -494,7 +494,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 any((
             all("pipx" in p for p in inject_paths),
             all("uv/tools" in p for p in inject_paths),
