ensure directory for notes exists
This commit is contained in:
parent
3ce93a17eb
commit
955b8031b5
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
from pathlib import Path
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from lectures import Lectures, number2filename
|
from lectures import Lectures, number2filename
|
||||||
|
@ -15,6 +14,7 @@ class Notes:
|
||||||
self.info = []
|
self.info = []
|
||||||
if 'path' in self.info:
|
if 'path' in self.info:
|
||||||
self.root = course.path / self.info['path']
|
self.root = course.path / self.info['path']
|
||||||
|
self.root.mkdir(parents=True, exist_ok=True)
|
||||||
else:
|
else:
|
||||||
self.root = course.path
|
self.root = course.path
|
||||||
if 'master_file' in self.info:
|
if 'master_file' in self.info:
|
||||||
|
|
Loading…
Reference in a new issue