move generated files to root folder

This commit is contained in:
Willem Melching 2018-01-26 11:47:55 -08:00
parent 2b5b0aa5ea
commit beba6d564f
9 changed files with 5 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import os
import re
cur_path = os.path.dirname(os.path.realpath(__file__))
generator_path = os.path.join(cur_path, '../generated')
generator_path = os.path.join(cur_path, '../')
for dir_name, _, _ in os.walk(cur_path):
if dir_name == cur_path:
@ -28,6 +28,8 @@ for dir_name, _, _ in os.walk(cur_path):
dbc_file = include_file + dbc_file
dbc_file = 'CM_ "AUTOGENERATED FILE, DO NOT EDIT"\n' + dbc_file
output_dbc_file = open(os.path.join(generator_path, filename), 'w')
output_filename = filename.replace('.dbc', '_generated.dbc')
output_dbc_file = open(os.path.join(generator_path, output_filename), 'w')
output_dbc_file.write(dbc_file)
output_dbc_file.close()

View File

@ -218,7 +218,7 @@ BO_ 399 STEER_STATUS: 6 EPS
SG_ STEER_CONTROL_ACTIVE : 36|1@0+ (1,0) [0|1] "" EON
SG_ STEER_STATUS : 35|4@0+ (1,0) [0|15] "" EON
SG_ COUNTER : 45|2@0+ (1,0) [0|3] "" EON
SG_ CHECKSUM : 43|4@0+ (1,0) [0|15] "" NE
SG_ CHECKSUM : 43|4@0+ (1,0) [0|15] "" EON
BO_ 401 GEARBOX: 8 PCM
SG_ GEAR_SHIFTER : 5|6@0+ (1,0) [0|63] "" EON