From patchwork Mon Jul 30 11:11:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel] knotty: ensure that directory for BB_CONSOLELOG exists before using it Date: Mon, 30 Jul 2012 11:11:46 -0000 From: Martin Jansa X-Patchwork-Id: 33283 Message-Id: <1343646706-15732-1-git-send-email-Martin.Jansa@gmail.com> To: bitbake-devel@lists.openembedded.org Signed-off-by: Martin Jansa --- lib/bb/ui/knotty.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index 0167416..9f51823 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -119,6 +119,7 @@ def main(server, eventHandler, tf = TerminalFilter): console.setFormatter(format) logger.addHandler(console) if consolelogfile: + bb.utils.mkdirhier(os.path.dirname(consolelogfile)) consolelog = logging.FileHandler(consolelogfile) bb.msg.addDefaultlogFilter(consolelog) consolelog.setFormatter(format)