mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 17:06:31 +08:00
[fix] parse correctly settings with names (#2604)
the appear with a ~ in the settings list which should be removed before testing for modules
This commit is contained in:
committed by
GitHub
parent
6f216e3e2f
commit
9dd0a81f11
@@ -335,6 +335,8 @@ let parse_aircraft = fun ?(parse_af=false) ?(parse_ap=false) ?(parse_fp=false) ?
|
||||
let settings_modules = List.fold_left
|
||||
(fun acc m ->
|
||||
if List.exists (fun name ->
|
||||
let name = List.hd (Str.split (Str.regexp "~") name) in
|
||||
(* FIXME use correctly the settings name in filtered settings ? *)
|
||||
m.Module.xml_filename = (if Filename.is_relative name
|
||||
then (Env.paparazzi_conf // name) else name)) settings_modules_files
|
||||
then acc @ m.Module.settings else acc
|
||||
|
||||
Reference in New Issue
Block a user