code: def __check_mecab_dict_path(self):
          
          mecab_dic_cmd = "echo `{} --dicdir`".format(os.path.join(self._path_mecab_config, 'mecab-config'))
  
          try:
              if six.PY2:
                  path_mecab_dict = subprocess.check_output( mecab_dic_cmd, shell=True  ).strip('\n')
              else:
                  path_mecab_dict = subprocess.check_output(mecab_dic_cmd, shell=True).decode(self.string_encoding).strip('\n')
  
          except subprocess.CalledProcessError:
              logger.error("{}".format(mecab_dic_cmd))
              raise subprocess.CalledProcessError(returncode=-1, cmd="Failed to execute mecab-config command")
          if path_mecab_dict == '':
              raise SystemError("""mecab dictionary path is not found with following command: {} 
              You are not able to use additional dictionary. 
              Still you are able to call mecab default dictionary""".format(mecab_dic_cmd))
  
          return path_mecab_dict
docs: check path to dict of Mecab in system environment