Skip to content

Commit c4a2fd0

Browse files
Add files via upload
1 parent 8c08c81 commit c4a2fd0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

run.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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 main.py
14+
15+
# Pause for user input before closing (optional)
16+
read -p "Press Enter to continue..."

0 commit comments

Comments
 (0)