From d65cfc12dc4dc6bf9c91f124bb6d1a7384701606 Mon Sep 17 00:00:00 2001 From: Florian Pineau Date: Fri, 29 Aug 2025 18:45:18 +0200 Subject: [PATCH] =?UTF-8?q?DOC:=20mise=20=C3=A0=20jour=20des=20lignes=20de?= =?UTF-8?q?=20commandes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e186f6c..7d229f8 100644 --- a/README.md +++ b/README.md @@ -6,20 +6,33 @@ Ce dossier contient un script Python pour calculer automatiquement le poids des Pour commencer, il est nécessaire de données une liste de dossiers à parcourir. Lancer la commande suivante : -```.\venv\Scripts\python.exe init_args.py``` +```{bash} +.\venv\Scripts\python.exe init_args.py +``` Un nouveau fichier est créé : `args.json` dans le dossier courant. Ce fichier contient la structure à suivre pour y mettre la liste des dossiers projet à parcourir: -``` - +```{json} +{ + "folder_paths": [ + "path\\to\\your\\folder_1", + "path\\to\\your\\folder_2", + "...", + "path\\to\\your\\folder_n" + ] +} ``` Vous pouvez le remplir manuellement ou choisir une approche automatique en éxecutant la commande suivante : -```.\venv\Scripts\python.exe populate_args_with_all_project_folders.py``` +```{bash} +.\venv\Scripts\python.exe populate_args_with_all_project_folders.py +``` Ensuite, lancez la commande suivante : -```.\venv\Scripts\python.exe main.py``` +```{bash} +.\venv\Scripts\python.exe main.py +``` À la fin du script, un CSV `output.csv` est créé contenant la liste des projets, leur poids et leur nombre de fichiers. \ No newline at end of file