From c4a2fd0a32207592bf5209f18c30e5489b2d0e49 Mon Sep 17 00:00:00 2001 From: Cursed Entertainment <110344485+CursedPrograms@users.noreply.github.com> Date: Thu, 10 Oct 2024 23:18:04 +0200 Subject: [PATCH] Add files via upload --- run.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 run.sh diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..21e00e0 --- /dev/null +++ b/run.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +VENV_DIR="psdenv" + +# Check if the virtual environment directory exists +if [ ! -d "$VENV_DIR" ]; then + # Create the virtual environment + python -m venv "$VENV_DIR" +fi + +# Activate the virtual environment and run the Python script +source "$VENV_DIR/bin/activate" +python main.py + +# Pause for user input before closing (optional) +read -p "Press Enter to continue..." \ No newline at end of file