From a1900c2c94aebc0a23a1238fde078d5c4020c954 Mon Sep 17 00:00:00 2001 From: dexterkennedy <104945997+dexterkennedy@users.noreply.github.com> Date: Sat, 27 Apr 2024 05:35:55 -0400 Subject: [PATCH] Log full path to config file in verbose output (#17180) Contributes to #6544 --- mypy/build.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mypy/build.py b/mypy/build.py index 65a06211c87e..84c85e66bd49 100644 --- a/mypy/build.py +++ b/mypy/build.py @@ -2850,10 +2850,14 @@ def skipping_ancestor(manager: BuildManager, id: str, path: str, ancestor_for: S def log_configuration(manager: BuildManager, sources: list[BuildSource]) -> None: """Output useful configuration information to LOG and TRACE""" + config_file = manager.options.config_file + if config_file: + config_file = os.path.abspath(config_file) + manager.log() configuration_vars = [ ("Mypy Version", __version__), - ("Config File", (manager.options.config_file or "Default")), + ("Config File", (config_file or "Default")), ("Configured Executable", manager.options.python_executable or "None"), ("Current Executable", sys.executable), ("Cache Dir", manager.options.cache_dir),