File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ VENV_DIR=" psdenv"
4+
5+ # Check if the virtual environment directory exists
6+ if [ ! -d " $VENV_DIR " ]; then
7+ # Create the virtual environment
8+ python -m venv " $VENV_DIR "
9+ fi
10+
11+ # Activate the virtual environment and run the Python script
12+ source " $VENV_DIR /bin/activate"
13+ python scripts/test/led_test.py
14+
15+ # Pause for user input before closing (optional)
16+ read -p " Press Enter to continue..."
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ VENV_DIR=" psdenv"
4+
5+ # Check if the virtual environment directory exists
6+ if [ ! -d " $VENV_DIR " ]; then
7+ # Create the virtual environment
8+ python -m venv " $VENV_DIR "
9+ fi
10+
11+ # Activate the virtual environment and run the Python script
12+ source " $VENV_DIR /bin/activate"
13+ python scripts/test/line_test.py
14+
15+ # Pause for user input before closing (optional)
16+ read -p " Press Enter to continue..."
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ VENV_DIR=" psdenv"
4+
5+ # Check if the virtual environment directory exists
6+ if [ ! -d " $VENV_DIR " ]; then
7+ # Create the virtual environment
8+ python -m venv " $VENV_DIR "
9+ fi
10+
11+ # Activate the virtual environment and run the Python script
12+ source " $VENV_DIR /bin/activate"
13+ python scripts/test/servo_test.py
14+
15+ # Pause for user input before closing (optional)
16+ read -p " Press Enter to continue..."
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ VENV_DIR=" psdenv"
4+
5+ # Check if the virtual environment directory exists
6+ if [ ! -d " $VENV_DIR " ]; then
7+ # Create the virtual environment
8+ python -m venv " $VENV_DIR "
9+ fi
10+
11+ # Activate the virtual environment and run the Python script
12+ source " $VENV_DIR /bin/activate"
13+ python scripts/test/ultrasonic_sensor_test.py
14+
15+ # Pause for user input before closing (optional)
16+ read -p " Press Enter to continue..."
You can’t perform that action at this time.
0 commit comments