mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 22:00:22 +00:00
Make the config directory if the directory doesn't exisit when generating config
This commit is contained in:
parent
d45f89c95b
commit
30572e28c2
1 changed files with 1 additions and 0 deletions
|
@ -112,6 +112,7 @@ class Config(object):
|
|||
if config_args.generate_config:
|
||||
config_dir_path = os.path.dirname(config_args.config_path)
|
||||
config_dir_path = os.path.abspath(config_dir_path)
|
||||
os.makedirs(config_dir_path)
|
||||
cls.generate_config(args, config_dir_path)
|
||||
config = {}
|
||||
for key, value in vars(args).items():
|
||||
|
|
Loading…
Reference in a new issue