mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Make the config directory if the directory doesn't exisit when generating config
This commit is contained in:
parent
d45f89c95b
commit
30572e28c2
@ -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 New Issue
Block a user