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

Add automatic path detection for running Python Tango devices

parent c84121a7
No related branches found
No related tags found
No related merge requests found
runThis=$(basename ${0})
runThis=${runThis//.sh/.py}
if [ -f ${runThis} ]; then
myDir=${PWD}
else
myDir=${PWD}/$(dirname ${0})
fi
containerPath=${myDir//${HOME}\//\/hosthome\/}
docker exec -it itango python3 ${containerPath}/${runThis} 1 -v
docker exec -it -e itango python3 ${PWD//${HOME}\//\/hosthome\/}/RandomData.py 1 -v
runThis=$(basename ${0})
runThis=${runThis//.sh/.py}
if [ -f ${runThis} ]; then
myDir=${PWD}
else
myDir=${PWD}/$(dirname ${0})
fi
containerPath=${myDir//${HOME}\//\/hosthome\/}
docker exec -it itango python3 ${containerPath}/${runThis} 1 -v
docker exec -it itango python3 ${PWD//${HOME}\//\/hosthome\/}/Crossecho.py 1
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