Files
ecmc_plugin_motion/tools/startGui.sh
2025-09-10 13:44:56 +02:00

23 lines
454 B
Bash
Executable File

#!/bin/bash
# Install virt env and execute python GUI
P=$1
ID=$2
DIR=$3
ENV_DIR="${DIR=/tmp}"/.venv
if [ -d "${ENV_DIR}" ]; then
. "${ENV_DIR}"/bin/activate
else
python3 -m venv "${ENV_DIR}"
. "${ENV_DIR}"/bin/activate
pip3 install wheel
pip3 install matplotlib==3.
pip3 install PySide2 pyepics pyqtgraph numpy
fi
echo "Prefix=${P=c6025a-04}"
echo "plugin id=${ID=0}"
python3 ecmcMotionMainPyQtGraph.py ${P=c6025a-04} ${ID=0}