mirror of
https://github.com/janishutz/BiogasControllerApp.git
synced 2025-11-25 13:54:24 +00:00
19 lines
461 B
Bash
Executable File
19 lines
461 B
Bash
Executable File
#!/bin/sh
|
|
|
|
use_venv="y"
|
|
if [[ -f ./.venv/bin/activate ]]; then
|
|
if [[ "$SHELL" == "fish" ]]; then
|
|
source ./.venv/bin/activate.fish
|
|
elif [[ "$SHELL" == "csh" ]]; then
|
|
source ./.venv/bin/activate.csh
|
|
else
|
|
source ./.venv/bin/activate
|
|
fi
|
|
|
|
if [[ !command -v deactivate >/dev/null 2>&1 ]]; then
|
|
echo "Virtual environment could not be activated. Trying to run anyway"
|
|
fi
|
|
fi
|
|
|
|
python biogascontrollerapp.py
|