def matplotlib_fname():
 if six.PY2:
  cwd = os.getcwdu()
 else:
  cwd = os.getcwd()
 fname = os.path.join(cwd, u'matplotlibrc')
 if os.path.exists(fname):
  return fname
 if (u'MATPLOTLIBRC' in os.environ):
  path = os.environ[u'MATPLOTLIBRC']
  if os.path.exists(path):
   if os.path.isfile(path):
    return path
   fname = os.path.join(path, u'matplotlibrc')
   if os.path.exists(fname):
    return fname
 configdir = _get_configdir()
 if os.path.exists(configdir):
  fname = os.path.join(configdir, u'matplotlibrc')
  if os.path.exists(fname):
   return fname
 path = get_data_path()
 fname = os.path.join(path, u'matplotlibrc')
 if (not os.path.exists(fname)):
  warnings.warn(u'Could not find matplotlibrc; using defaults')
 return fname

def matplotlib_fname ( ) : if six . PY2 : cwd = os . getcwdu ( ) else : cwd = os . getcwd ( ) fname = os . path . join ( cwd , u'matplotlibrc' ) if os . path . exists ( fname ) : return fname if ( u'MATPLOTLIBRC' in os . environ ) : path = os . environ [ u'MATPLOTLIBRC' ] if os . path . exists ( path ) : if os . path . isfile ( path ) : return path fname = os . path . join ( path , u'matplotlibrc' ) if os . path . exists ( fname ) : return fname configdir = _get_configdir ( ) if os . path . exists ( configdir ) : fname = os . path . join ( configdir , u'matplotlibrc' ) if os . path . exists ( fname ) : return fname path = get_data_path ( ) fname = os . path . join ( path , u'matplotlibrc' ) if ( not os . path . exists ( fname ) ) : warnings . warn ( u'Could not find matplotlibrc; using defaults' ) return fname
get the location of the config file .