mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-26 16:30:07 +08:00
Set correctly HOME and SRC with the current directory
This commit is contained in:
@@ -5,6 +5,7 @@ let dirname = Filename.dirname Sys.argv.(0)
|
||||
let env =
|
||||
Array.map (fun var ->
|
||||
let value = try Sys.getenv var with _ -> dirname in
|
||||
let value = if value = "." then Sys.getcwd () else value in
|
||||
Printf.sprintf "%s=%s" var value)
|
||||
[|"PAPARAZZI_SRC"; "PAPARAZZI_HOME"|]
|
||||
let com = dirname // "sw/supervision/paparazzicenter";;
|
||||
|
||||
Reference in New Issue
Block a user