fix: wrong path update_readme.py

pull/15/head
daffainfo 2024-01-15 16:19:51 +07:00
parent 9d7c53ce47
commit 137d00865e
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ if os.path.exists(folder_path) and os.path.isdir(folder_path):
total_second_level_subfolder_count += len(second_level_subfolders)
# Update the README.md file
readme_file = os.path.join(folder_path, "README.md")
readme_file = os.path.join(".", "README.md")
print(readme_file)
if os.path.isfile(readme_file):
with open(readme_file, 'r') as file:
content = file.read()