From 7e1036b30d38d43b2298cbe1a4ab38de967afc8e Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 28 Apr 2023 01:11:31 +0300 Subject: [PATCH] doctor: add system/global config location --- dvc/info.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dvc/info.py b/dvc/info.py index ec6cd26d3..4ee44c9f0 100644 --- a/dvc/info.py +++ b/dvc/info.py @@ -32,6 +32,7 @@ def get_dvc_info(): f"Platform: Python {platform.python_version()} on {platform.platform()}", f"Subprojects:{_get_subprojects()}", f"Supports:{_get_supported_remotes()}", + f"Config:{_get_config_dirs()}", ] try: @@ -136,6 +137,17 @@ def _get_supported_remotes(): return "\n\t" + ",\n\t".join(supported_remotes) +def _get_config_dirs(): + from dvc.config import Config + + dirs = [ + f"Global: {Config.get_dir('global')}", + f"System: {Config.get_dir('system')}", + ] + + return "\n\t" + "\n\t".join(dirs) + + def _get_fs_type(path): partition = {} for part in psutil.disk_partitions(all=True):