lib/matplotlib/config/cutils.py
def _get_configdir():
    """
    Return the string representing the configuration dir.

    default is HOME/.matplotlib.  you can override this with the
    MPLCONFIGDIR environment variable
    """

    configdir = os.environ.get('MPLCONFIGDIR')
    if configdir is not None:
        if not is_writable_dir(configdir):
            raise RuntimeError('Could not write to MPLCONFIGDIR="%s"'%configdir)
        return configdir

    h = get_home()
    p = os.path.join(get_home(), '.matplotlib')

    if os.path.exists(p):
        if not is_writable_dir(p):
            raise RuntimeError("""\
'%s' is not a writable dir; you must set %s/.matplotlib to be a writable dir.
You can also set environment variable MPLCONFIGDIR to any writable directory
where you want matplotlib data stored """%(p,h))
    else:
        if not is_writable_dir(h):
            raise RuntimeError("Failed to create %s/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data"%h)

        os.mkdir(p)

    return p

    Return the string representing the configuration dir.

    default is HOME/.matplotlib.  you can override this with the
    MPLCONFIGDIR environment variable
    
Return the string representing the configuration dir.
default is HOME/.matplotlib.  you can override this with the
MPLCONFIGDIR environment variable
Return the string representing the configuration dir . default is HOME / . matplotlib . you can override this with the MPLCONFIGDIR environment variable
def _get_configdir():
    configdir = os.environ.get('MPLCONFIGDIR')
    if configdir is not None:
        if not is_writable_dir(configdir):
            raise RuntimeError('Could not write to MPLCONFIGDIR="%s"'%configdir)
        return configdir
    h = get_home()
    p = os.path.join(get_home(), '.matplotlib')
    if os.path.exists(p):
        if not is_writable_dir(p):
            raise RuntimeError("""\
'%s' is not a writable dir; you must set %s/.matplotlib to be a writable dir.
You can also set environment variable MPLCONFIGDIR to any writable directory
where you want matplotlib data stored """%(p,h))
    else:
        if not is_writable_dir(h):
            raise RuntimeError("Failed to create %s/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data"%h)
        os.mkdir(p)
    return p
def _get_configdir ( ) : configdir = os . environ . get ( 'MPLCONFIGDIR' ) if configdir is not None : if not is_writable_dir ( configdir ) : raise RuntimeError ( 'Could not write to MPLCONFIGDIR="%s"' % configdir ) return configdir h = get_home ( ) p = os . path . join ( get_home ( ) , '.matplotlib' ) if os . path . exists ( p ) : if not is_writable_dir ( p ) : raise RuntimeError ( """\
'%s' is not a writable dir; you must set %s/.matplotlib to be a writable dir.
You can also set environment variable MPLCONFIGDIR to any writable directory
where you want matplotlib data stored """ % ( p , h ) ) else : if not is_writable_dir ( h ) : raise RuntimeError ( "Failed to create %s/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data" % h ) os . mkdir ( p ) return p
Return the string representing the configuration dir.
Return the string representing the configuration dir .
"""
    Return the string representing the configuration dir.

    default is HOME/.matplotlib.  you can override this with the
    MPLCONFIGDIR environment variable
    """