From 2074faac4927b783dafaf51e252df621d6aeadfc Mon Sep 17 00:00:00 2001
From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl>
Date: Fri, 3 Apr 2020 21:33:46 +0200
Subject: [PATCH] Add way to replace current dir of launch script with
 container path

---
 RandomDataDev/lauchRandomData.sh        | 2 +-
 crossechoTangoDev/launchCrossecho.sh    | 3 +--
 itango_console/launch_itango_console.sh | 1 +
 3 files changed, 3 insertions(+), 3 deletions(-)
 create mode 100755 itango_console/launch_itango_console.sh

diff --git a/RandomDataDev/lauchRandomData.sh b/RandomDataDev/lauchRandomData.sh
index 312c3a980..771202614 100755
--- a/RandomDataDev/lauchRandomData.sh
+++ b/RandomDataDev/lauchRandomData.sh
@@ -1 +1 @@
-docker exec -it -e PYTHONPATH=/hosthome${TANGO_SKA##${HOME}} itango python3 /hosthome${TANGO_LOFAR##${HOME}}/RandomDataDev/RandomData.py 1 -v
+docker exec -it -e itango python3 ${PWD//${HOME}\//\/hosthome\/}/RandomData.py 1 -v
diff --git a/crossechoTangoDev/launchCrossecho.sh b/crossechoTangoDev/launchCrossecho.sh
index c024edfb7..456ac97f7 100755
--- a/crossechoTangoDev/launchCrossecho.sh
+++ b/crossechoTangoDev/launchCrossecho.sh
@@ -1,2 +1 @@
-docker exec -it -e PYTHONPATH=/hosthome${TANGO_SKA##${HOME}} itango python3 /hosthome${TANGO_LOFAR##${HOME}}/crossechoTangoDev/Crossecho.py 1
-
+docker exec -it itango python3 ${PWD//${HOME}\//\/hosthome\/}/Crossecho.py 1
diff --git a/itango_console/launch_itango_console.sh b/itango_console/launch_itango_console.sh
new file mode 100755
index 000000000..831109df5
--- /dev/null
+++ b/itango_console/launch_itango_console.sh
@@ -0,0 +1 @@
+docker exec -it itango itango3
-- 
GitLab