23 lines
555 B
Bash
Executable file
23 lines
555 B
Bash
Executable file
#!/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
|
|
|
|
# Run the Python script with all command line arguments
|
|
python "$SCRIPT_PATH" "$@"
|
|
|
|
# Deactivate the conda environment
|
|
conda deactivate
|
|
|