diff --git a/generator/generator.py b/generator/generator.py index f9efc291a2a38b..b7a4e86b36651b 100755 --- a/generator/generator.py +++ b/generator/generator.py @@ -14,7 +14,7 @@ def create_dbc(filename): output_filename = filename.replace('.dbc', '_generated.dbc') output_file_location = os.path.join(generator_path, output_filename) - if os.isfile(output_file_location): + if os.path.isfile(output_file_location): os.remove(output_file_location) with open(output_file_location, 'a') as dbc_file_out: