aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mlog.py
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2018-08-23 09:12:27 -0400
committerGitHub <noreply@github.com>2018-08-23 09:12:27 -0400
commit3f3ae097d5a0c32b384aa3c2627cd88b66e66ea7 (patch)
tree02b41228c21958f5cb89f13f75c4eb2ae16c4778 /mesonbuild/mlog.py
parent54aed1a92c282b88060a32586d47fd86a4866f03 (diff)
parent05cab3dee5c1352e36c03f19966511d9c51d8db8 (diff)
downloadmeson-3f3ae097d5a0c32b384aa3c2627cd88b66e66ea7.zip
meson-3f3ae097d5a0c32b384aa3c2627cd88b66e66ea7.tar.gz
meson-3f3ae097d5a0c32b384aa3c2627cd88b66e66ea7.tar.bz2
Merge pull request #3769 from xclaesse/command-line-step2
Command line step2
Diffstat (limited to 'mesonbuild/mlog.py')
-rw-r--r--mesonbuild/mlog.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/mlog.py b/mesonbuild/mlog.py
index 1654824..b8d3ccc 100644
--- a/mesonbuild/mlog.py
+++ b/mesonbuild/mlog.py
@@ -59,9 +59,12 @@ def set_timestamp_start(start):
def shutdown():
global log_file
if log_file is not None:
+ path = log_file.name
exception_around_goer = log_file
log_file = None
exception_around_goer.close()
+ return path
+ return None
class AnsiDecorator:
plain_code = "\033[0m"