code: def has_reg(value):
      
      try:
          SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE, value)
          ret = True
      except SCons.Util.WinError:
          ret = False
      return ret
docs: Return True if the given key exists in HKEY_LOCAL_MACHINE, False
      otherwise.