mirror of
https://github.com/ihabunek/toot
synced 2025-01-09 08:12:50 +01:00
parent
ddd4326f7e
commit
05a06acf8e
@ -3,6 +3,7 @@ Changelog
|
||||
|
||||
**0.17.1 (2017-01-15)**
|
||||
|
||||
* Create config folder if it does not exist (#40)
|
||||
* Fix packaging to include `toot.ui` package (#41)
|
||||
|
||||
**0.17.0 (2017-01-15)**
|
||||
|
@ -4,6 +4,7 @@ import os
|
||||
import json
|
||||
|
||||
from functools import wraps
|
||||
from os.path import dirname
|
||||
|
||||
from toot import User, App
|
||||
from toot.config_legacy import load_legacy_config
|
||||
@ -47,6 +48,10 @@ def make_config(path):
|
||||
}
|
||||
|
||||
print_out("Creating config file at <blue>{}</blue>".format(path))
|
||||
|
||||
# Ensure dir exists
|
||||
os.makedirs(dirname(path), exist_ok=True)
|
||||
|
||||
with open(path, 'w') as f:
|
||||
json.dump(config, f, indent=True)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user