We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad4e35 commit e7a2b89Copy full SHA for e7a2b89
run.ps1
@@ -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