Make the config directory if the directory doesn't exisit when generating config
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