From dd912d2842d6132fd8dad9bf4f52c4e7edcbdc2c Mon Sep 17 00:00:00 2001 From: Nekori Date: Fri, 23 Apr 2021 02:42:37 +0200 Subject: [PATCH] create html/export if not exist --- html/export_yaml_to_html.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/export_yaml_to_html.py b/html/export_yaml_to_html.py index 49295e2..e8e5b10 100644 --- a/html/export_yaml_to_html.py +++ b/html/export_yaml_to_html.py @@ -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