Skip to content

Commit

Permalink
fixing generated dbc handling for code gen
Browse files Browse the repository at this point in the history
  • Loading branch information
RCMast3r committed Jan 27, 2024
1 parent 097a57b commit 566645c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generator/pio_lib_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
os.makedirs(generated_dbc_file_dir, exist_ok=True)
dbc_file_name = os.path.splitext(os.path.basename(dbc_file_name))[0] + ".dbc"
cantools.database.dump_file(db, os.path.join(generated_dbc_file_dir, dbc_file_name))

abs_path_to_dbc = generated_dbc_file_dir
if not len(dbc_file):
print("[dbcpio] ERROR: No file matched pattern:")
print(f"user_dbcs: {user_dbc_file}")
Expand All @@ -128,6 +128,7 @@
user=1000,
volumes=[abs_path_to_dbc + ":/data", generated_src_dir + ":/out"],
working_dir="/app",
stderr=True
)

env.Append(
Expand Down

0 comments on commit 566645c

Please sign in to comment.