Functions/Restore-PythonUtilitiesConfigDefaults.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
. "$PSScriptRoot\ConfigGettersAndSetters.ps1"

function Restore-PythonUtilitiesConfigDefaults([switch]$Force){
$Null = @(
    if ($Force){
        Set-PythonInstallRoot -Path "C:\PythonInstallations" -Force
        Set-VirtualEnvironmentRoot -Path "C:\PythonVirtualEnvironments" -Force
    }
    else {
        Set-PythonInstallRoot -Path "C:\PythonInstallations"
        Set-VirtualEnvironmentRoot -Path "C:\PythonVirtualEnvironments"
    }
)
}