create html/export if not exist

This commit is contained in:
Éric Li 2021-04-23 02:42:37 +02:00
parent 214efac1bd
commit dd912d2842
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@ REPERTOIRE_RESSOURCES_DEFINITIVES = Config.ROOT + "/yaml/ressources"
REPERTOIRE_SAE_DEFINITIVES = Config.ROOT + "/yaml/saes"
REPERTOIRE_HTML = Config.ROOT + "/html/export"
# Créer le dossier html/export s'il n'existe pas
if not os.path.exists(REPERTOIRE_HTML):
os.makedirs(REPERTOIRE_HTML)
# Chargement des ressources : depuis les versions définitives du répertoire yaml d'abord,
# puis dans python/export si manquantes
fichiers_definitifs = [ os.path.split(x)[1] for x in glob.glob(REPERTOIRE_RESSOURCES_DEFINITIVES+'/*.yml') ] #nom fichier dans yaml/ressources