def _get_extra_data_path(home_dir=None):
 global _temp_home_dir
 if (home_dir is None):
  home_dir = os.environ.get('_MNE_FAKE_HOME_DIR')
 if (home_dir is None):
  if ('nt' == os.name.lower()):
   home_dir = os.getenv('APPDATA')
  elif (os.getenv('MNE_DONTWRITE_HOME', '') == 'true'):
   if (_temp_home_dir is None):
    _temp_home_dir = tempfile.mkdtemp()
    atexit.register(partial(shutil.rmtree, _temp_home_dir, ignore_errors=True))
   home_dir = _temp_home_dir
  else:
   home_dir = os.path.expanduser('~')
  if (home_dir is None):
   raise ValueError('mne-python config file path could not be determined, please report this error to mne-python developers')
 return op.join(home_dir, '.mne')

def _get_extra_data_path ( home_dir = None ) : global _temp_home_dir if ( home_dir is None ) : home_dir = os . environ . get ( '_MNE_FAKE_HOME_DIR' ) if ( home_dir is None ) : if ( 'nt' == os . name . lower ( ) ) : home_dir = os . getenv ( 'APPDATA' ) elif ( os . getenv ( 'MNE_DONTWRITE_HOME' , '' ) == 'true' ) : if ( _temp_home_dir is None ) : _temp_home_dir = tempfile . mkdtemp ( ) atexit . register ( partial ( shutil . rmtree , _temp_home_dir , ignore_errors = True ) ) home_dir = _temp_home_dir else : home_dir = os . path . expanduser ( '~' ) if ( home_dir is None ) : raise ValueError ( 'mne-python config file path could not be determined, please report this error to mne-python developers' ) return op . join ( home_dir , '.mne' )
get path to extra data .