add omegaconf dependency, rework launch scripts to check if venv exists
This commit is contained in:
28
launch.ps1
28
launch.ps1
@@ -1,15 +1,25 @@
|
||||
# Activate Python virtual environment
|
||||
Set-Location -Path "."
|
||||
.venv\Scripts\Activate.ps1
|
||||
# Check if .venv exists
|
||||
if (Test-Path .venv) {
|
||||
# Activate the virtual environment
|
||||
.\.venv\Scripts\Activate.ps1
|
||||
} else {
|
||||
# Run uv sync if .venv does not exist
|
||||
uv sync
|
||||
.\.venv\Scripts\Activate.ps1
|
||||
}
|
||||
|
||||
# Perform a git pull to sync the repository
|
||||
# Perform a git pull
|
||||
git pull
|
||||
|
||||
# Run uv sync (replace 'uv sync' with the actual command if different)
|
||||
uv sync
|
||||
# Run uv sync if .venv exists (already activated)
|
||||
if (Test-Path .venv) {
|
||||
uv sync
|
||||
}
|
||||
|
||||
# Start the Python script
|
||||
# Start main.py
|
||||
python main.py
|
||||
|
||||
# Deactivate the virtual environment
|
||||
deactivate
|
||||
# Deactivate the virtual environment if it was activated
|
||||
if (Test-Path .venv) {
|
||||
deactivate
|
||||
}
|
||||
Reference in New Issue
Block a user