Skip to content

Commit

Permalink
Fix DBC scons build (#1523)
Browse files Browse the repository at this point in the history
* fix

* clean up
  • Loading branch information
sshane authored Nov 23, 2024
1 parent 3c6e530 commit 8e349c3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion opendbc/dbc/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,15 @@ output_files = [
if not f.name.startswith("_")
]

# include DBCs generated by python scripts
output_files += [
f.name.replace(".py", "_generated.dbc")
for f in Path("generator").rglob("*.py")
if not f.name.startswith(("_", "test_")) and f.name != "generator.py"
]

generated = env.Command(
target=output_files,
source=[generator] + source_files,
action="python3 ${SOURCES[0]}",
)
)
File renamed without changes.
2 changes: 1 addition & 1 deletion opendbc/dbc/generator/tesla/tesla_radar_bosch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3

import os
from opendbc.dbc.generator.tesla.radar_common import get_radar_point_definition, get_val_definition
from opendbc.dbc.generator.tesla._radar_common import get_radar_point_definition, get_val_definition

if __name__ == "__main__":
dbc_name = os.path.basename(__file__).replace(".py", ".dbc")
Expand Down
2 changes: 1 addition & 1 deletion opendbc/dbc/generator/tesla/tesla_radar_continental.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3

import os
from opendbc.dbc.generator.tesla.radar_common import get_radar_point_definition, get_val_definition
from opendbc.dbc.generator.tesla._radar_common import get_radar_point_definition, get_val_definition

if __name__ == "__main__":
dbc_name = os.path.basename(__file__).replace(".py", ".dbc")
Expand Down

0 comments on commit 8e349c3

Please sign in to comment.