code: def get_config(path):
      
      if configparser is None:
          return None
  
      # Check for env specific configs first
      if os.path.exists(os.path.join(ROOT, 'config', NAME, path)):
          path = os.path.join(ROOT, 'config', NAME, path)
      else:
          path = os.path.join(ROOT, 'config', path)
  
      if not os.path.isfile(path):
          return None
  
      conf = open(path, 'rt').read()
      conf = os.path.expandvars(conf)
  
      config = configparser.SafeConfigParser()
      if sys.version_info[0] == 2:
          from io import StringIO
          config.readfp(StringIO(unicode(conf)))
      else:
          config.read_string(conf)
      return config
docs: Load a config from disk
  
      :param path: target config
      :type path: unicode
      :return:
      :rtype: configparser.Config