Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
SOWI Administratoren
chocolatey-packages
Commits
a36d0f33
Commit
a36d0f33
authored
Oct 22, 2012
by
Ethan J. Brown
Browse files
PYTHONHOME must be set in running script
Using SetEnvironmentVariable does not update current session
parent
68c297e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
easy.install/tools/chocolateyInstall.ps1
View file @
a36d0f33
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment