doctor: add system/global config location

This commit is contained in:
Ruslan Kuprieiev
2023-04-28 01:23:44 +03:00
parent a15dbc8e03
commit 7e1036b30d
+12
View File
@@ -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):