code: def init(filename=ConfigPath):
      
      section, parts = "DEFAULT", filename.rsplit(":", 1)
      if len(parts) > 1 and os.path.isfile(parts[0]): filename, section = parts
      if not os.path.isfile(filename): return
  
      vardict, parser = globals(), configparser.RawConfigParser()
      parser.optionxform = str # Force case-sensitivity on names
      try:
          def parse_value(raw):
              try: return json.loads(raw) # Try to interpret as JSON
              except ValueError: return raw # JSON failed, fall back to raw
          txt = open(filename).read() # Add DEFAULT section if none present
          if not re.search("\\[\\w+\\]", txt): txt = "[DEFAULT]\n" + txt
          parser.readfp(StringIO.StringIO(txt), filename)
          for k, v in parser.items(section): vardict[k] = parse_value(v)
      except Exception:
          logging.warn("Error reading config from %s.", filename, exc_info=True)
docs: Loads INI configuration into this module's attributes.