From d4f6328eefe1fcf8e210583907b0c82623c1dd71 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 11 Oct 2011 16:05:32 +0200 Subject: [PATCH] finish context Signed-off-by: Nico Schottelius --- lib/cdist/context.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/lib/cdist/context.py b/lib/cdist/context.py index 240593db..d8d4e5ea 100644 --- a/lib/cdist/context.py +++ b/lib/cdist/context.py @@ -31,8 +31,6 @@ import os #import cdist.core #import cdist.exec -log = logging.getLogger(__name__) - class Context: """Hold information about current context""" @@ -47,7 +45,9 @@ class Context: # Only required for testing self.exec_path = exec_path - log.addFilter(self) + # Context logging + self.log = logging.getLogger(__name__) + self.log.addFilter(self) # Base and Temp Base self.base_path = (base_path or @@ -88,14 +88,6 @@ class Context: self.remote_type_path = os.path.join(self.remote_conf_path, "type") self.remote_global_explorer_path = os.path.join(self.remote_conf_path, "explorer") - # Setup env to be used by others - self.__init_env() - - # Create directories - self.__init_local_paths() - self.__init_remote_paths() - - def cleanup(self): # Do not use in __del__: # http://docs.python.org/reference/datamodel.html#customization