Skip to content

Commit

Permalink
fix 'xml needed by h' error
Browse files Browse the repository at this point in the history
  • Loading branch information
bates64 committed Aug 15, 2024
1 parent 318b110 commit f1b227c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tools/build/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,9 +1094,8 @@ def build(
else:
build(bin_path, [raw_bin_path], "cp")

try_xml_path = f"assets/x/mapfs/geom/{map_name}.xml"
xml_path = self.resolve_asset_path(try_xml_path)
if xml_path != try_xml_path:
xml_path = self.resolve_asset_path(f"assets/x/mapfs/geom/{map_name}.xml")
if xml_path.exists():
build(self.build_path() / "include/mapfs" / (base_name + ".h"), [xml_path], "map_header")

compress = True
Expand All @@ -1114,9 +1113,8 @@ def build(
bin_path = bin_path.parent / "geom" / (base_name + ".bin")
build(bin_path, [raw_bin_path], "cp")

try_xml_path = f"assets/x/mapfs/geom/{map_name}.xml"
xml_path = self.resolve_asset_path(try_xml_path)
if xml_path != try_xml_path:
xml_path = self.resolve_asset_path(f"assets/x/mapfs/geom/{map_name}.xml")
if xml_path.exists():
build(self.build_path() / "include/mapfs" / (base_name + ".h"), [xml_path], "map_header")
else:
compress = True
Expand Down

0 comments on commit f1b227c

Please sign in to comment.