diff --git a/README.md b/README.md index 7006fa9..6b0b910 100644 --- a/README.md +++ b/README.md @@ -11,23 +11,22 @@ Ce dossier contient un script Python pour calculer automatiquement le poids des - Cliquez sur **Terminal > New Terminal** - Clonez le repository à l'aide du terminal : ```bash -git clone http://192.168.1.125:30008/Florian/projects_stats.git +git clone http://192.168.1.125:30008/Florian/projects_stats.git . ``` -- Créez un environnement virtuel et activez le : +- Créez un environnement virtuel : ```bash py -m venv venv -.\venv\Scripts\activate.bat ``` - Installez les dépendances : ```bash -pip install -r .\requirements.txt +.\venv\Scripts\pip.exe install -r .\requirements.txt ``` # Instructions Pour commencer, il est nécessaire de donner la liste de dossiers projet à parcourir. Éxecutez la commande suivante : ```bash -python init_args.py +.\venv\Scripts\python.exe init_args.py ``` Un nouveau fichier est créé : **args.json**. Ce fichier contient la structure à suivre pour y mettre la liste des dossiers projet à parcourir: @@ -45,13 +44,13 @@ Un nouveau fichier est créé : **args.json**. Ce fichier contient la structure Vous pouvez de remplir manuellement les champs (si vous avez peu de dossiers à parcourir) ou choisir une approche automatique en éxecutant la commande suivante : ```bash -python populate_args_with_all_project_folders.py +.\venv\Scripts\python.exe populate_args_with_all_project_folders.py ``` Enfin, éxecutez la commande suivante : ```bash -python main.py +.\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