mlog.shutdown(): Return the log file path or None if not initialized

pull/3769/head
Xavier Claessens 7 years ago
parent 1e6d72eb5a
commit bef8187e43
  1. 3
      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"

Loading…
Cancel
Save