From d2772564de2f49e7d5f4109e0c3e918b5377304f Mon Sep 17 00:00:00 2001 From: Langevin Gael Date: Wed, 11 Oct 2023 20:40:18 +0200 Subject: [PATCH] Update InMoov2.java --- src/main/java/org/myrobotlab/service/InMoov2.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/myrobotlab/service/InMoov2.java b/src/main/java/org/myrobotlab/service/InMoov2.java index 44a4350ddf..4ae00fba24 100644 --- a/src/main/java/org/myrobotlab/service/InMoov2.java +++ b/src/main/java/org/myrobotlab/service/InMoov2.java @@ -637,8 +637,18 @@ public boolean isMute() { return mute; } + /** + * execute python scripts in the app directory on startup of the service + * + * @throws IOException + */ + public void loadAppScripts() throws IOException { + loadScripts(getResourceDir() + fs + "gestures/InMoovApps/Rock_Paper_Scissors"); + loadScripts(getResourceDir() + fs + "gestures/InMoovApps/Kids_WordsGame"); + } + public void loadGestures() { - loadGestures(getResourceDir() + fs + "gestures", getResourceDir() + fs + "gestures/InMoovApps/Rock_Paper_Scissors", getResourceDir() + fs + "gestures/InMoovApps/Kids_WordsGame",); + loadGestures(getResourceDir() + fs + "gestures"); } /**