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

Add automatic installation of Python modules

The Python modules that the device depends on have to be
specified in the file requirements.txt in the same path
of the device.
parent 5c6f135e
No related branches found
No related tags found
No related merge requests found
......@@ -37,5 +37,8 @@ else
myDir=${PWD}/$(dirname ${deviceServer})
fi
deviceServerPath=${myDir//${HOME}\//\/hosthome\/}
if [ -f ${deviceServerPath}/requirements.txt ]; then
docker exec -it itango pip3 install -r ${deviceServerPath}/requirements.txt
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