From 68c3b7e9f610ec8ff484bb420da3bd3b07105ebc Mon Sep 17 00:00:00 2001 From: Tim Hess Date: Fri, 14 Nov 2025 12:49:34 -0600 Subject: [PATCH 1/2] For python test runs from .ps1: use the discovered path to the python executable rather than assume pipenv is on the path --- behave.ps1 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/behave.ps1 b/behave.ps1 index 4fe0a68c..df65e70c 100644 --- a/behave.ps1 +++ b/behave.ps1 @@ -26,7 +26,8 @@ function Command-Available { } function Env-Exists { - pipenv --venv 2>&1 | Out-Null + param($PythonCmd) + & $PythonCmd -m pipenv --venv 2>&1 | Out-Null return $? } @@ -43,17 +44,17 @@ try { if (Test-Path $ReInitFlag) { Write-Host "Reinitializing" - pipenv --rm + & $PythonCmd -m pipenv --rm Remove-Item $ReInitFlag } - if (-not (Env-Exists)) { + if (-not (Env-Exists $PythonCmd)) { Write-Host "Creating pipenv with $PythonCmd" - pipenv --python $PythonCmd - pipenv sync + & $PythonCmd -m pipenv --python $PythonCmd + & $PythonCmd -m pipenv install } - pipenv run behave @Args + & $PythonCmd -m pipenv run behave @Args } finally { Pop-Location From 28ec542b52aff4135e9c578739b1e876c1e85b4c Mon Sep 17 00:00:00 2001 From: Tim Hess Date: Mon, 17 Nov 2025 10:04:35 -0600 Subject: [PATCH 2/2] pipenv should continue to sync rather than install --- behave.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/behave.ps1 b/behave.ps1 index df65e70c..2e691779 100644 --- a/behave.ps1 +++ b/behave.ps1 @@ -51,7 +51,7 @@ try { if (-not (Env-Exists $PythonCmd)) { Write-Host "Creating pipenv with $PythonCmd" & $PythonCmd -m pipenv --python $PythonCmd - & $PythonCmd -m pipenv install + & $PythonCmd -m pipenv sync } & $PythonCmd -m pipenv run behave @Args