Auto-update: Fri Aug 2 13:50:51 PDT 2024
This commit is contained in:
parent
d29e53e16a
commit
46ea7306f9
2 changed files with 23 additions and 0 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
23
sij
Executable file
23
sij
Executable file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/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
|
||||||
|
python "$SCRIPT_PATH"
|
||||||
|
|
||||||
|
# Deactivate the conda environment
|
||||||
|
conda deactivate
|
||||||
|
|
Loading…
Reference in a new issue