mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
[gen_modules] fix directory name for header includes
This commit is contained in:
@@ -49,7 +49,8 @@ let print_headers = fun modules ->
|
||||
try
|
||||
let headers = ExtXml.child m "header" in
|
||||
List.iter (fun h ->
|
||||
lprintf out_h "#include \"%s/%s\"\n" dir_name (Xml.attrib h "name"))
|
||||
let dir = ExtXml.attrib_or_default h "dir" dir_name in
|
||||
lprintf out_h "#include \"%s/%s\"\n" dir (Xml.attrib h "name"))
|
||||
(Xml.children headers)
|
||||
with _ -> ())
|
||||
modules
|
||||
|
||||
Reference in New Issue
Block a user