mirror of https://github.com/rusefi/opendbc.git
Update generator.py
This commit is contained in:
parent
9c49b88e85
commit
19a4249b72
|
@ -28,7 +28,7 @@ for dir_name, _, filenames in os.walk(cur_path):
|
|||
|
||||
output_filename = filename.replace('.dbc', '_generated.dbc')
|
||||
|
||||
with open(os.path.join(generator_path, output_filename), 'a') as dbc_file_out:
|
||||
with open(os.path.join(generator_path, output_filename), 'w') as dbc_file_out:
|
||||
dbc_file_out.write('CM_ "AUTOGENERATED FILE, DO NOT EDIT"\n')
|
||||
|
||||
for include_filename in reversed(includes):
|
||||
|
|
Loading…
Reference in New Issue