-
Notifications
You must be signed in to change notification settings - Fork 22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I did:
- Ran against databroker with new option --dbcfile .dbc,.dbc
- Ran against databroker speciying .dbc,.dbc in the config file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Tested with command line argument and config works but have a minor comment see below
self.db = cantools.database.load_file(filename, strict=use_strict_parsing) | ||
first = False | ||
else: | ||
log.info("Adding definitions from {}".format(filename)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here you need to check for found_names again, did a test and loading two files says it has loaded the same file but does it anyway after. Or you move the if firtst: .. else
part into the else
of if filename in found_names:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, right now it just gives a warning, it anyway loads it the second time. I can change so it only loads it once
No description provided.