6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

Fix missing webui env directory

This commit is contained in:
Régis Behmo 2019-03-10 18:02:20 +01:00
parent b98f5bf4b7
commit 9d7a67bb69
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog # Changelog
## Latest
- [Bugfix] Fix missing webui env directory
## 3.1.0 (2019-03-09) ## 3.1.0 (2019-03-09)
- [Improvement] Install python requirements in virtual env in docker image - [Improvement] Install python requirements in virtual env in docker image

View File

@ -118,7 +118,11 @@ def load_config(root):
return yaml.load(f) return yaml.load(f)
def save_config(root, config): 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) yaml.dump(config, of, default_flow_style=False)
def gotty_path(root): def gotty_path(root):