Skip to content

Commit

Permalink
move generated files to root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Jan 27, 2018
1 parent 2b5b0aa commit beba6d5
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 3 deletions.
File renamed without changes.
6 changes: 4 additions & 2 deletions generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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:
Expand All @@ -28,6 +28,8 @@
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()
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit beba6d5

Please sign in to comment.