Skip to content

Commit de92782

Browse files
Add files via upload
1 parent a75416b commit de92782

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

run.ps1

Whitespace-only changes.

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..."

stup.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Create a Python virtual environment
2+
python -m venv psdenv
3+
4+
# Activate the virtual environment and run the Python script
5+
& ".\psdenv\Scripts\Activate.ps1"
6+
python main.py

0 commit comments

Comments
 (0)