Commit a36d0f33 authored by Ethan J. Brown's avatar Ethan J. Brown
Browse files

PYTHONHOME must be set in running script

Using SetEnvironmentVariable does not update current session
parent 68c297e6
......@@ -117,6 +117,7 @@ function setup-python() {
Write-Host "Setting PYTHONHOME environment variable to '$python_home'"
Write-Host "PS: PYTHONHOME variable is not required to Python works, but it is a good practice to have it."
[Environment]::SetEnvironmentVariable('PYTHONHOME', $python_home, 'User')
$Env:PYTHONHOME = $python_home
return $python_home
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment