$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