Skip to content

Commit e7a2b89

Browse files
Update run.ps1
1 parent 0ad4e35 commit e7a2b89

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

run.ps1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Define the virtual environment directory
2+
$VENV_DIR = "psdenv"
3+
4+
# Check if the virtual environment directory exists
5+
if (-Not (Test-Path $VENV_DIR)) {
6+
# Create the virtual environment
7+
python -m venv $VENV_DIR
8+
}
9+
10+
# Activate the virtual environment and run the Python script
11+
& "$VENV_DIR\Scripts\Activate.ps1"
12+
python main.py
13+
14+
# Pause for user input before closing (optional)
15+
Read-Host "Press Enter to continue..."

0 commit comments

Comments
 (0)