We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4074837 commit 68c3b7eCopy full SHA for 68c3b7e
1 file changed
behave.ps1
@@ -26,7 +26,8 @@ function Command-Available {
26
}
27
28
function Env-Exists {
29
- pipenv --venv 2>&1 | Out-Null
+ param($PythonCmd)
30
+ & $PythonCmd -m pipenv --venv 2>&1 | Out-Null
31
return $?
32
33
@@ -43,17 +44,17 @@ try {
43
44
45
if (Test-Path $ReInitFlag) {
46
Write-Host "Reinitializing"
- pipenv --rm
47
+ & $PythonCmd -m pipenv --rm
48
Remove-Item $ReInitFlag
49
50
- if (-not (Env-Exists)) {
51
+ if (-not (Env-Exists $PythonCmd)) {
52
Write-Host "Creating pipenv with $PythonCmd"
- pipenv --python $PythonCmd
53
- pipenv sync
+ & $PythonCmd -m pipenv --python $PythonCmd
54
+ & $PythonCmd -m pipenv install
55
56
- pipenv run behave @Args
57
+ & $PythonCmd -m pipenv run behave @Args
58
59
finally {
60
Pop-Location
0 commit comments