From d478b21b6811fca9900db04b65f95c5d916778b5 Mon Sep 17 00:00:00 2001 From: koushikmahadev Date: Wed, 25 Nov 2026 17:27:58 +0530 Subject: [PATCH 1/3] fix: avoid Windows Popen fallback when explicit PATH lookup fails --- src/dotenv/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dotenv/cli.py b/src/dotenv/cli.py index 83849690..dda36e28 100644 --- a/src/dotenv/cli.py +++ b/src/dotenv/cli.py @@ -240,6 +240,8 @@ def run_command(command: List[str], env: Dict[str, str]) -> None: # (https://docs.python.org/3/library/subprocess.html#popen-constructor). executable = shutil.which(command[0], path=cmd_env.get("PATH")) try: + if executable is None and "PATH" in cmd_env: + raise FileNotFoundError # `execvpe` on Windows returns control immediately. p = Popen( command, From 5ab6b182e358bcbd39797e33edca040ad3f78a91 Mon Sep 17 00:00:00 2001 From: koushikmahadev Date: Wed, 25 Nov 2026 18:03:15 +0530 Subject: [PATCH 2/3] chore: comment-only trigger for PR review re-test --- src/dotenv/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dotenv/cli.py b/src/dotenv/cli.py index dda36e28..cd3af857 100644 --- a/src/dotenv/cli.py +++ b/src/dotenv/cli.py @@ -264,3 +264,4 @@ def run_command(command: List[str], env: Dict[str, str]) -> None: except FileNotFoundError: print(f"Command not found: {command[0]}", file=sys.stderr) sys.exit(1) +# Re-test trigger for diff-only scoping verification From 09e8fc634212a782835681182fbb6ce95cdf1d29 Mon Sep 17 00:00:00 2001 From: koushikmahadev Date: Fri, 27 Nov 2026 10:31:01 +0530 Subject: [PATCH 3/3] chore: comment-only trigger for zero-findings attempts check --- src/dotenv/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dotenv/cli.py b/src/dotenv/cli.py index cd3af857..57246e01 100644 --- a/src/dotenv/cli.py +++ b/src/dotenv/cli.py @@ -265,3 +265,4 @@ def run_command(command: List[str], env: Dict[str, str]) -> None: print(f"Command not found: {command[0]}", file=sys.stderr) sys.exit(1) # Re-test trigger for diff-only scoping verification +# Live verification trigger for zero-findings attempts metadata