diff --git a/CHANGELOG.md b/CHANGELOG.md index 291157e..0321ba3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Latest + +- [Bugfix] Fix missing webui env directory + ## 3.1.0 (2019-03-09) - [Improvement] Install python requirements in virtual env in docker image diff --git a/tutor/webui.py b/tutor/webui.py index 934d26c..ae8b387 100644 --- a/tutor/webui.py +++ b/tutor/webui.py @@ -118,7 +118,11 @@ def load_config(root): return yaml.load(f) def save_config(root, config): - with open(config_path(root), "w") as of: + path = config_path(root) + directory = os.path.dirname(path) + if not os.path.exists(directory): + os.makedirs(directory) + with open(path, "w") as of: yaml.dump(config, of, default_flow_style=False) def gotty_path(root):