[pprz center] possibility to launch global commans from tools using $ prefix

This commit is contained in:
Felix Ruess
2015-07-16 23:34:56 +02:00
parent c5c2ef4f22
commit 6eb14dcf88
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -71,6 +71,8 @@
<arg flag="-b" variable="ivy_bus"/>
</program>
<program name="Http Server" command="$python -m SimpleHTTPServer 8889"/>
<program name="Plot Meteo Profile" command="sw/logalizer/plotprofile"/>
<program name="Weather Station" command="sw/ground_segment/misc/davis2ivy">
+2
View File
@@ -42,6 +42,8 @@ let program_command = fun x ->
let cmd = ExtXml.attrib xml "command" in
if cmd.[0] = '/' then
cmd
else if cmd.[0] = '$' then
String.sub cmd 1 ((String.length cmd) - 1)
else
Env.paparazzi_src // cmd
with Not_found ->