From cf97fd9837c4253613ba809b9d87763197741d51 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 7 Oct 2011 09:27:46 +0200 Subject: [PATCH] remove type_explorer information from path Signed-off-by: Nico Schottelius --- lib/cdist/path.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/cdist/path.py b/lib/cdist/path.py index 99adfe99..4c36bfa5 100644 --- a/lib/cdist/path.py +++ b/lib/cdist/path.py @@ -92,7 +92,6 @@ class Path: self.object_base_dir = os.path.join(self.out_dir, "object") self.bin_dir = os.path.join(self.out_dir, "bin") - os.environ['__cdist_out_dir'] = self.out_dir # List of type explorers transferred self.type_explorers_transferred = {} @@ -116,6 +115,10 @@ class Path: shutil.move(self.temp_dir, self.cache_dir) + def __init_env(self): + """Setup environment""" + os.environ['__cdist_out_dir'] = self.out_dir + def __init_out_dirs(self): """Initialise output directory structure""" os.mkdir(self.out_dir)