From 955b8031b5b549fe7e0d4512b50923a96e345e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 16 Sep 2021 18:30:43 +0200 Subject: [PATCH] ensure directory for notes exists --- scripts/notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/notes.py b/scripts/notes.py index 96d2c15..21b76c2 100644 --- a/scripts/notes.py +++ b/scripts/notes.py @@ -1,5 +1,4 @@ #!/usr/bin/python3 -from pathlib import Path import subprocess from lectures import Lectures, number2filename @@ -15,6 +14,7 @@ class Notes: self.info = [] if 'path' in self.info: self.root = course.path / self.info['path'] + self.root.mkdir(parents=True, exist_ok=True) else: self.root = course.path if 'master_file' in self.info: