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

Convert directory paths to absolute paths before daemonizing

parent 5c5f5c1f
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
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