File size: 454 Bytes
cff1674 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
if (-not (Test-Path -Path "venv")) {
Write-Host "Creating venv..."
python -m venv venv
}
# Create the directory if it doesn't exist
$null = New-Item -ItemType Directory -Force -Path ".\logs\setup"
# Deactivate the virtual environment
& .\venv\Scripts\deactivate.bat
& .\venv\Scripts\activate.bat
& .\venv\Scripts\python.exe .\setup\setup_windows.py $args
# Deactivate the virtual environment
& .\venv\Scripts\deactivate.bat
|