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:
parent
b98f5bf4b7
commit
9d7a67bb69
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user