From 12a5711b63383ae1866c9e2b369cd82c155c0035 Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Fri, 8 Nov 2019 11:39:11 +0100
Subject: [PATCH] fix issue with dir creation

---
 contribute.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contribute.py b/contribute.py
index a8c76e10..ea625ac9 100644
--- a/contribute.py
+++ b/contribute.py
@@ -20,6 +20,10 @@ def main(date, name):
     # get the root directory
     rootDir = os.getcwd()
 
+    # create a root directory if not existing
+    if not os.path.exists(mainDir):
+        os.mkdir(mainDir)
+
     # generate the full name of the presentation
     fullName = date + "_" + name
 
-- 
GitLab