Skip to content

Commit 7740f55

Browse files
committed
Activate venv change
1 parent 3e3e6bb commit 7740f55

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/e2e/Tests/build-e2e-test.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,19 @@ else
136136
if (!$SkipBuild)
137137
{
138138
EnsureValidPythonVersion
139+
Set-Location $E2EAppProjectDirectory
139140

140141
if (!(Test-Path $E2EAppVenvDirectory)) {
141142
Write-Host "Creating virtual environment for Python app"
142-
python -m venv $E2EAppVenvDirectory
143+
python -m venv .venv
143144
}
144145
else {
145146
Write-Host "Virtual environment already exists at $E2EAppVenvDirectory"
146147
}
147148

148-
. "$E2EAppVenvDirectory\Scripts\Activate.ps1"
149+
Set-Location ".venv/Scripts"
150+
151+
.\activate
149152

150153
python -m pip install --upgrade pip
151154
python -m pip install -r "$E2EAppProjectDirectory\requirements.txt" --upgrade

0 commit comments

Comments
 (0)