From 6bd64437213a177924f699b22d5e5b72ec8653c9 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 6 Oct 2011 20:32:59 +0200 Subject: [PATCH] fix out dir for object Signed-off-by: Nico Schottelius --- lib/cdist/path.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cdist/path.py b/lib/cdist/path.py index 73a90302..98572b81 100644 --- a/lib/cdist/path.py +++ b/lib/cdist/path.py @@ -68,7 +68,6 @@ class Path: self.base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) self.temp_dir = tempfile.mkdtemp() - os.environ['__cdist_out_dir'] = self.temp_dir self.target_host = target_host @@ -93,6 +92,8 @@ 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 = {}