diff --git a/auto.py b/auto.py index 1498987..6e98558 100755 --- a/auto.py +++ b/auto.py @@ -1,11 +1,13 @@ #!/usr/bin/python3 +# -*- coding: utf-8 -*- +# pylint: disable=invalid-name, missing-docstring """ TP AP1 Licence SESI 1ère année Univ. Lille 1 -Scipt permettant d'automatiser les TP +Scipt permettant d'automatiser le rendu des TP """ __author__ = "PREUD'HOMME Geoffrey" @@ -15,7 +17,7 @@ import zipfile base = './' rendeurs = [('BEAUSSART Jean-loup', 'Beaussart'), - ('PREUD\'HOMME Geoffrey', 'PreudHomme')] + ('PREUD\\\'HOMME Geoffrey', 'PreudHomme')] def chemin(semestre, tp=None): @@ -49,9 +51,12 @@ def fichiersTp(semestre, tp): # TODO .gitignore # TODO .tpfiles fichiers = fichiersPythons(semestre, tp) - if semestre == 2 and tp == 3: - fichiers.remove('bataille_navale_graphique.py') - fichiers.append('jeu3.txt') + if semestre == 2: + if tp == 3: + fichiers.remove('bataille_navale_graphique.py') + fichiers.append('jeu3.txt') + if tp == 4: + fichiers.append('Makefile') return fichiers @@ -66,7 +71,7 @@ def rendeur(semestre, tp): rend = '' rendeurMax = 500 for j in range(len(rendeurs)): - pos = texte.find(rendeurs[j][0]) # TODO Gérer \' + pos = texte.find(rendeurs[j][0]) if pos < rendeurMax and pos >= 0: rendeurMax = pos rend = j