Skip to content
Snippets Groups Projects
Commit 445a3f85 authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Correct code that installs Python modules with pip3

parent bfcafd6b
No related branches found
No related tags found
No related merge requests found
......@@ -36,9 +36,11 @@ if [ -f ${runThis} ]; then
else
myDir=${PWD}/$(dirname ${deviceServer})
fi
deviceServerPath=${myDir//${HOME}\//\/hosthome\/}
if [ -f ${deviceServerPath}/requirements.txt ]; then
deviceServerPath=${myDir/${HOME}/\/hosthome}
if [ -f ${myDir}/requirements.txt ]; then
echo "Installing required Python modules with pip3..."
docker exec -it itango pip3 install -r ${deviceServerPath}/requirements.txt
echo "Installing required Python modules with pip3 done."
fi
docker exec -it itango python3 ${deviceServerPath}/${runThis} ${instance} ${@}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment