summary refs log tree commit diff
path: root/synapse/config/_base.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-02-09 18:29:36 +0000
committerMark Haines <mark.haines@matrix.org>2015-02-09 18:30:00 +0000
commit8ce100c7b48a38e5f74ed6ac560de1f50c288379 (patch)
treed6db44ee39f374974a9781e9a8817be046d0dd4c /synapse/config/_base.py
parentMerge pull request #56 from matrix-org/room_initial_sync_perf (diff)
downloadsynapse-8ce100c7b48a38e5f74ed6ac560de1f50c288379.tar.xz
Convert directory paths to absolute paths before daemonizing
Diffstat (limited to 'synapse/config/_base.py')
-rw-r--r--synapse/config/_base.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/config/_base.py b/synapse/config/_base.py
index dfc115d8e8..9b0f8c3c32 100644
--- a/synapse/config/_base.py
+++ b/synapse/config/_base.py
@@ -50,8 +50,9 @@ class Config(object):
             )
         return cls.abspath(file_path)
 
-    @staticmethod
-    def ensure_directory(dir_path):
+    @classmethod
+    def ensure_directory(cls, dir_path):
+        dir_path = cls.abspath(dir_path)
         if not os.path.exists(dir_path):
             os.makedirs(dir_path)
         if not os.path.isdir(dir_path):