def __init__(self, base_path=None, default_filename=None, rm_path=False, no_base_path=None, **kwargs): self.defaults = kwargs if no_base_path and not default_filename: default_filename = no_base_path self.default_filename = default_filename if base_path: self.base_path = base_path elif not no_base_path: self.caller_info = caller_name() if self.caller_info: self.base_path = create_log_filename(self.caller_info.Base) + os.path.sep if rm_path: rm_log_path(self.base_path)
def __init__(self, base_path=None, default_filename=None, rm_path=False, no_base_path=None, **kwargs): self.defaults = kwargs if no_base_path and not default_filename: default_filename = no_base_path self.default_filename = default_filename if base_path: self.base_path = base_path elif not no_base_path: self.caller_info = caller_name() if self.caller_info: self.base_path = create_log_filename( self.caller_info.Base) + os.path.sep if rm_path: rm_log_path(self.base_path)
def rm_log_paths(*args, **kwargs): for arg in args: rm_log_path(arg, **kwargs)