Skip to content
Snippets Groups Projects
Commit 45570e46 authored by Mark Haines's avatar Mark Haines
Browse files

os.makedirs is almost but not entirely unlike mkdir -p

parent 64b341cc
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,8 @@ 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)
if not os.path.exists(config_dir_path):
os.makedirs(config_dir_path)
cls.generate_config(args, config_dir_path)
config = {}
for key, value in vars(args).items():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment