Skip to content

Commit a9696d9

Browse files
committed
🐛 Fix contributors page output path
- Fix path calculation in github_contributors.py to go two levels up from script directory - Output file is now correctly created at about/contributors.md instead of scripts/about/contributors.md - Fixes FileNotFoundError in GitHub Actions workflow
1 parent bbdf7af commit a9696d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/contributors/github_contributors.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,9 @@ def main():
579579

580580
# Génération de la page web
581581
if args.web:
582-
# Obtenir le répertoire racine du projet (1 niveau au-dessus du script)
582+
# Obtenir le répertoire racine du projet (2 niveaux au-dessus du script)
583583
script_dir = os.path.dirname(os.path.abspath(__file__))
584-
project_root = os.path.dirname(script_dir)
584+
project_root = os.path.dirname(os.path.dirname(script_dir))
585585
web_output = os.path.join(project_root, 'about', 'contributors.md')
586586
generate_web_page(contributors, packages, exclude_bots, exclude_names, web_output)
587587

0 commit comments

Comments
 (0)