def _mne_root_problem(mne_root):
 if (mne_root is None):
  return 'MNE_ROOT is not set.'
 elif (not os.path.exists(mne_root)):
  return ('MNE_ROOT (%s) does not exist.' % mne_root)
 else:
  test_dir = os.path.join(mne_root, 'share', 'mne', 'mne_analyze')
  if (not os.path.exists(test_dir)):
   return ('MNE_ROOT (%s) is missing files. If this is your MNE installation, consider reinstalling.' % mne_root)

def _mne_root_problem ( mne_root ) : if ( mne_root is None ) : return 'MNE_ROOT is not set.' elif ( not os . path . exists ( mne_root ) ) : return ( 'MNE_ROOT (%s) does not exist.' % mne_root ) else : test_dir = os . path . join ( mne_root , 'share' , 'mne' , 'mne_analyze' ) if ( not os . path . exists ( test_dir ) ) : return ( 'MNE_ROOT (%s) is missing files. If this is your MNE installation, consider reinstalling.' % mne_root )
check mne_root path .