Skip to content

Commit

Permalink
fix(scripts): simulate_alerts.sh to point to the right virtualenv pat…
Browse files Browse the repository at this point in the history
…h and also support running from any directory (#2127)
  • Loading branch information
ronshapiro authored Oct 8, 2024
1 parent 60d01d2 commit 2b4c83c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/simulate_alerts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ fi
# Number of processes to run
NUM_PROCESSES=$1

ROOT="$(dirname $0)/.."

# Function to start the processes
start_processes() {
for ((i=0; i<NUM_PROCESSES; i++)); do
../.venv/bin/python simulate_alerts.py &
"${ROOT}/venv/bin/python" "${ROOT}/scripts/simulate_alerts.py" &
PIDS[$i]=$!
done
}
Expand Down

0 comments on commit 2b4c83c

Please sign in to comment.