forked from MirrorHub/synapse
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:
|
if config_args.generate_config:
|
||||||
config_dir_path = os.path.dirname(config_args.config_path)
|
config_dir_path = os.path.dirname(config_args.config_path)
|
||||||
config_dir_path = os.path.abspath(config_dir_path)
|
config_dir_path = os.path.abspath(config_dir_path)
|
||||||
|
os.makedirs(config_dir_path)
|
||||||
cls.generate_config(args, config_dir_path)
|
cls.generate_config(args, config_dir_path)
|
||||||
config = {}
|
config = {}
|
||||||
for key, value in vars(args).items():
|
for key, value in vars(args).items():
|
||||||
|
|
Loading…
Reference in a new issue