Skip to content

Instantly share code, notes, and snippets.

@lennybacon
Last active March 20, 2018 14:38
Show Gist options
  • Save lennybacon/884d217590913b99ae89ba45a64637ac to your computer and use it in GitHub Desktop.
Save lennybacon/884d217590913b99ae89ba45a64637ac to your computer and use it in GitHub Desktop.
Add python 2 install location to the PATH environment variable
$path = ([System.Environment]::GetEnvironmentVariable("PATH").Replace("C:\Python27", "") + ";C:\Python27").Replace(";;", ";");
[System.Environment]::SetEnvironmentVariable("PATH", $path);
& SETX PATH "$path" /M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment