From 6e011dc289c4545c4d078f3dec86b3f038a45295 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 7 Oct 2011 13:15:11 +0200 Subject: [PATCH] implement explorer_out_dir Signed-off-by: Steven Armstrong --- lib/cdist/core/object.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/cdist/core/object.py b/lib/cdist/core/object.py index 65abc012..e224a18f 100644 --- a/lib/cdist/core/object.py +++ b/lib/cdist/core/object.py @@ -116,6 +116,13 @@ class Object(object): def code_remote(self): return os.path.join(self.path, "code-remote") + @property + def explorer_out_dir(self): + path = os.path.join(self.path, "explorer") + if not os.path.isdir(path): + os.mkdir(path) + return path + ### requirements @property def requirements(self):