def get_base_dirs():
 if options['basedirlist']:
  return options['basedirlist']
 if os.environ.get('MPLBASEDIRLIST'):
  return os.environ.get('MPLBASEDIRLIST').split(os.pathsep)
 win_bases = ['win32_static']
 if os.getenv('CONDA_DEFAULT_ENV'):
  win_bases.append(os.path.join(os.getenv('CONDA_DEFAULT_ENV'), 'Library'))
 basedir_map = {'win32': win_bases, 'darwin': ['/usr/local/', '/usr', '/usr/X11', '/opt/X11', '/opt/local'], 'sunos5': [(os.getenv('MPLIB_BASE') or '/usr/local')], 'gnu0': ['/usr'], 'aix5': ['/usr/local']}
 return basedir_map.get(sys.platform, ['/usr/local', '/usr'])

def get_base_dirs ( ) : if options [ 'basedirlist' ] : return options [ 'basedirlist' ] if os . environ . get ( 'MPLBASEDIRLIST' ) : return os . environ . get ( 'MPLBASEDIRLIST' ) . split ( os . pathsep ) win_bases = [ 'win32_static' ] if os . getenv ( 'CONDA_DEFAULT_ENV' ) : win_bases . append ( os . path . join ( os . getenv ( 'CONDA_DEFAULT_ENV' ) , 'Library' ) ) basedir_map = { 'win32' : win_bases , 'darwin' : [ '/usr/local/' , '/usr' , '/usr/X11' , '/opt/X11' , '/opt/local' ] , 'sunos5' : [ ( os . getenv ( 'MPLIB_BASE' ) or '/usr/local' ) ] , 'gnu0' : [ '/usr' ] , 'aix5' : [ '/usr/local' ] } return basedir_map . get ( sys . platform , [ '/usr/local' , '/usr' ] )
returns a list of standard base directories on this platform .