(name: str, default: Optional[str] = None)
Get configured path

    Parameters
    ----------
    name: str
        The named config path value
    default: Optional[str]
        The default to return if `name` is not defined
Get configured path
Get configured path
def get_path(name: str, default: Optional[str] = None) -> Optional[str]:
    """
    Get configured path

    Parameters
    ----------
    name: str
        The named config path value
    default: Optional[str]
        The default to return if `name` is not defined
    """
    cfg = _get_parsed_config()
    try:
        return cfg.get('paths', name)
    except (configparser.NoOptionError, configparser.NoSectionError):
        return default
def get_path ( name : str , default : Optional [ str ] = None ) -> Optional [ str ] : cfg = _get_parsed_config ( ) try : return cfg . get ( 'paths' , name ) except ( configparser . NoOptionError , configparser . NoSectionError ) : return default