mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-30 01:25:30 +00:00
Order Scripts start
This commit is contained in:
17
scripts/order/run.sh
Executable file
17
scripts/order/run.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
# Script to run the order hints processor with the virtual environment
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# Check if virtual environment exists
|
||||
if [ ! -d "venv" ]; then
|
||||
echo "Creating virtual environment..."
|
||||
python -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install lxml
|
||||
else
|
||||
source venv/bin/activate
|
||||
fi
|
||||
|
||||
# Run the script with passed arguments
|
||||
python add_order_hints.py "$@"
|
||||
Reference in New Issue
Block a user