2024-08-02 22:50:51 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Set the path to the script
|
|
|
|
SCRIPT_PATH="$HOME/workshop/sijapi/sijapi/helpers/start.py"
|
|
|
|
|
|
|
|
# Check if the script exists
|
|
|
|
if [ ! -f "$SCRIPT_PATH" ]; then
|
|
|
|
echo "Error: Script not found at $SCRIPT_PATH"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Set up the environment
|
|
|
|
source "$HOME/workshop/sijapi/sijapi/config/.env"
|
|
|
|
|
|
|
|
# Activate the conda environment (adjust the path if necessary)
|
|
|
|
source "$HOME/miniforge3/bin/activate" sijapi
|
|
|
|
|
2024-08-09 00:55:31 +02:00
|
|
|
# Run the Python script with all command line arguments
|
|
|
|
python "$SCRIPT_PATH" "$@"
|
2024-08-02 22:50:51 +02:00
|
|
|
|
|
|
|
# Deactivate the conda environment
|
|
|
|
conda deactivate
|
|
|
|
|