ensure directory for notes exists

This commit is contained in:
Maximilian Keßler 2021-09-16 18:30:43 +02:00
parent 3ce93a17eb
commit 955b8031b5

View file

@ -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: