Change to os.path functions base on comment

Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
Xiaokang Qian 2023-09-12 10:45:55 +00:00
parent 0e5b53c7e4
commit 7d546c7c88

View file

@ -72,7 +72,7 @@ def generate_driver_wrapper_file(template_dir: str,
result = render(driver_wrapper_template_filename, driver_jsoncontext) result = render(driver_wrapper_template_filename, driver_jsoncontext)
with open(file=os.path.join(output_dir, template_file_name.rsplit(".", 1)[0]), with open(file=os.path.join(output_dir, os.path.splitext(template_file_name)[0]),
mode='w', mode='w',
encoding='UTF-8') as out_file: encoding='UTF-8') as out_file:
out_file.write(result) out_file.write(result)