Created
August 4, 2016 16:57
-
-
Save ashiato45/63a91d89b1679e6e7cb91c3da8e7a76c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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