code: def VCInstallDir(self):
          
          self.VSInstallDir
  
          guess_vc = self._guess_vc() or self._guess_vc_legacy()
  
          # Try to get "VC++ for Python" path from registry as default path
          reg_path = os.path.join(self.ri.vc_for_python, '%0.1f' % self.vc_ver)
          python_vc = self.ri.lookup(reg_path, 'installdir')
          default_vc = os.path.join(python_vc, 'VC') if python_vc else guess_vc
  
          # Try to get path from registry, if fail use default path
          path = self.ri.lookup(self.ri.vc, '%0.1f' % self.vc_ver) or default_vc
  
          if not os.path.isdir(path):
              msg = 'Microsoft Visual C++ directory not found'
              raise distutils.errors.DistutilsPlatformError(msg)
  
          return path
docs: Microsoft Visual C++ directory.