class_docstr: This class can be used to fetch NuPic configuration settings which are
  stored in one or more XML files.
  
  If the environment variable ``NTA_CONF_PATH`` is defined, then the
  configuration files are expected to be in the ``NTA_CONF_PATH`` search path,
  which is a ':' separated list of directories (on Windows the separator is a
  ';'). If ``NTA_CONF_PATH`` is not defined, then it is loaded via
  pkg_resources.
docstr: Retrieve the requested property and return it as a bool. If property
  does not exist, then KeyError will be raised. If the property value is
  neither 0 nor 1, then ValueError will be raised
  
  :param prop: (string) name of the property
  :raises: KeyError, ValueError
  :returns: (bool) property value
docstr_tok: ["Retrieve","the","requested","property","and","return","it","as","a","bool",".","If","property","does","not","exist",",","then","KeyError","will","be","raised",".","If","the","property","value","is","neither","0","nor","1",",","then","ValueError","will","be","raised",":","param","prop",":","(","string",")","name","of","the","property",":","raises",":","KeyError",",","ValueError",":","returns",":","(","bool",")","property","value"]
code: def getBool(cls, prop):
      """Retrieve the requested property and return it as a bool. If property
      does not exist, then KeyError will be raised. If the property value is
      neither 0 nor 1, then ValueError will be raised
  
      :param prop: (string) name of the property
      :raises: KeyError, ValueError
      :returns: (bool) property value
      """
  
      value = cls.getInt(prop)
  
      if value not in (0, 1):
          raise ValueError(
              "Expected 0 or 1, but got %r in config property %s"
              % (value, prop)
          )
  
      return bool(value)
  
imports: from __future__ import with_statement
  import os
  import logging
  from xml.etree import ElementTree
  from pkg_resources import resource_string
label_desc: Use image node_id 2 for calling the Configuration obj's underlying member method code with example usage: obj.getBool(cls, prop) and returns: bool