Skip to content

Commit

Permalink
{Misc.} az --version: Show config directory location (#30662)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiasli authored Jan 16, 2025
1 parent a29d2e7 commit f0b5572
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/azure-cli-core/azure/cli/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ def _get_local_versions():

def get_az_version_string(use_cache=False): # pylint: disable=too-many-statements
from azure.cli.core.extension import get_extensions, EXTENSIONS_DIR, DEV_EXTENSION_SOURCES, EXTENSIONS_SYS_DIR
from azure.cli.core._environment import get_config_dir
import io
output = io.StringIO()
versions = _get_local_versions()
Expand Down Expand Up @@ -410,6 +411,7 @@ def _get_version_string(name, version_dict):
_print()

_print("Python location '{}'".format(os.path.abspath(sys.executable)))
_print("Config directory '{}'".format(get_config_dir()))
_print("Extensions directory '{}'".format(EXTENSIONS_DIR))
if os.path.isdir(EXTENSIONS_SYS_DIR) and os.listdir(EXTENSIONS_SYS_DIR):
_print("Extensions system directory '{}'".format(EXTENSIONS_SYS_DIR))
Expand Down

0 comments on commit f0b5572

Please sign in to comment.