@@ -194,22 +194,22 @@ def copy_ble_lib_files(src_repo_path, dest_lib_path, stm32_serie):
194194
195195
196196def update_ble_lib_readme (lib_path , make_version , make_commit ):
197- """Update README file
197+ """Update README.rst file
198198
199199 Args:
200200 dest_lib_path: library path
201201 make_version: latest STM32Cube version.
202202 make_commit: Commit corresponding to latest STM32Cube version.
203203 """
204204
205- readme_path = Path (lib_path / "README" )
205+ readme_path = Path (lib_path / "README.rst " )
206206
207207 with readme_path .open (mode = "r" ) as readme_prev :
208208 lines = (x for x in readme_prev .read ().splitlines ())
209209
210210 readme_path .unlink ()
211211
212- # Write README from previous one if exists
212+ # Write README.rst from previous one if exists
213213 with open (str (readme_path ), "w" ) as readme_file :
214214 for line_item in lines :
215215 # change version nb
@@ -285,8 +285,8 @@ def build_patch_from_current_zephyr_version(
285285 for file in temp_source_lib_path .glob ("*" ):
286286 if file .is_file ():
287287 file .unlink ()
288- if Path (temp_source_lib_path / "README" ).exists ():
289- Path (temp_source_lib_path / "README" ).unlink ()
288+ if Path (temp_source_lib_path / "README.rst " ).exists ():
289+ Path (temp_source_lib_path / "README.rst " ).unlink ()
290290
291291 # commit this current zephyr library file
292292 os_cmd (("git" , "add" , "*" ), cwd = temp_source_path )
@@ -337,7 +337,7 @@ def update(
337337 )
338338 copy_ble_lib_files (src_repo_path , dest_lib_path , stm32_serie )
339339 common_utils .apply_patch (dest_lib_path / "ble_zephyr.patch" , dest_lib_path )
340- if Path (dest_lib_path / "README" ).exists ():
340+ if Path (dest_lib_path / "README.rst " ).exists ():
341341 update_ble_lib_readme (dest_lib_path , update_version , commit )
342342
343343
0 commit comments