Change to os.path functions base on comment
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
parent
0e5b53c7e4
commit
7d546c7c88
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ def generate_driver_wrapper_file(template_dir: str,
|
|||
|
||||
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',
|
||||
encoding='UTF-8') as out_file:
|
||||
out_file.write(result)
|
||||
|
|
Loading…
Reference in a new issue