Commit 7fb004ef authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

fix to use default config

parent a09e066b
......@@ -50,6 +50,9 @@ class NbCourse:
if config_file:
update_dict(self.conf, self._get_user_config(config_file))
self.conf['project_path'] = Path(config_file).absolute().parent
else:
# Only default config is loaded (only useful for tests)
self.conf['project_path'] = Path.cwd()
self.conf['template_path'] = Path(self.conf['theme']['dir'],
'templates')
for key in 'nb', 'theme':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment