pull/511/head
Akegarasu 2024-09-09 23:05:33 +08:00
parent f7af1642c6
commit daff1715ab
No known key found for this signature in database
GPG Key ID: DACA951FEBA569A2
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@ if (Test-Path -Path "venv\Scripts\activate") {
}
elseif (Test-Path -Path "python\python.exe") {
Write-Host -ForegroundColor green "Using python from python folder..."
$py_path = (Get-Item "python").FullName
$env:PATH = "$py_path;$env:PATH"
}
else {
Write-Host -ForegroundColor Blue "No virtual environment found, using system python..."