summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-09-02 10:52:25 +0100
committerMark Haines <mark.haines@matrix.org>2014-09-02 10:52:25 +0100
commit30572e28c2e13f5ee9b0164ba106c4f919ffce05 (patch)
treecce87ded6f5092cf8ea9c3ef124e7858e32d5c57 /synapse/config
parentMore helpful error messages for missing config (diff)
downloadsynapse-30572e28c2e13f5ee9b0164ba106c4f919ffce05.tar.xz
Make the config directory if the directory doesn't exisit when generating config
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/_base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/config/_base.py b/synapse/config/_base.py
index 91c0229d81..970256349a 100644
--- a/synapse/config/_base.py
+++ b/synapse/config/_base.py
@@ -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():