in modular_cli/service/config.py [0:0]
def get_credentials_folder() -> Path:
"""
Old credentials folder is '~/m3modularcli'. New one is '~/.modular_cli'.
This function is backward-compatible. In case the old folder exists,
it will be returned. Otherwise, the new one is returned
"""
folder = Path.home() / TOOL_FOLDER_NAME # old
if folder.exists() and folder.is_dir():
return folder.resolve() # full path
# returning a new one
return (Path.home() / TOOL_CONFIGURATION_FOLDER).resolve()