Make the config directory if the directory doesn't exisit when generating config

This commit is contained in:
Mark Haines 2014-09-02 10:52:25 +01:00
parent d45f89c95b
commit 30572e28c2

View File

@ -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():