mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 19:23:53 +01:00
os.makedirs is almost but not entirely unlike mkdir -p
This commit is contained in:
parent
64b341cc10
commit
45570e4695
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,8 @@ 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)
|
if not os.path.exists(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