Add linux start script
This commit is contained in:
21
Start.sh
Normal file
21
Start.sh
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
|
||||||
|
|
||||||
|
# Change the directory to where the script is
|
||||||
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
|
# Path to your virtual environment
|
||||||
|
VENV_PATH="$SCRIPT_DIR/.venv"
|
||||||
|
source "$VENV_PATH/bin/activate"
|
||||||
|
|
||||||
|
# Path to your Python script
|
||||||
|
SCRIPT_PATH="$SCRIPT_DIR/Start.py"
|
||||||
|
|
||||||
|
# Run the Python script
|
||||||
|
python "$SCRIPT_PATH"
|
||||||
|
|
||||||
|
# Deactivate the virtual environment
|
||||||
|
deactivate
|
||||||
|
|
||||||
|
read -p "Press Enter to exit..."
|
||||||
Reference in New Issue
Block a user