Skip to content

Instantly share code, notes, and snippets.

@ashiato45
Created August 4, 2016 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashiato45/63a91d89b1679e6e7cb91c3da8e7a76c to your computer and use it in GitHub Desktop.
Save ashiato45/63a91d89b1679e6e7cb91c3da8e7a76c to your computer and use it in GitHub Desktop.
$paths = New-Object "System.Collections.Generic.List[string]"
if ($Args[0] -eq "official"){
$paths.Add("C:\Users\ashia\AppData\Local\Programs\Python\Python35\Scripts\")
$paths.Add("C:\Users\ashia\AppData\Local\Programs\Python\Python35\")
}elseif ($Args[0] -eq "anaconda"){
$paths.Add("C:\Users\ashia\Anaconda2")
$paths.Add("C:\Users\ashia\Anaconda2\Scripts")
$paths.Add("C:\Users\ashia\Anaconda2\Library\bin")
}else{
echo "Invalid argument!"
exit 1
}
$Env:Path = [string]::Join(";", $paths) + ";" + $Env:Path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment