parameters: ()
return_statement: return None, None
docstring: Returns "15, path" based on the result of invoking vswhere.exe
      If no install is found, returns "None, None"
  
      The version is returned to avoid unnecessarily changing the function
      result. It may be ignored when the path is not None.
  
      If vswhere.exe is not available, by definition, VS 2017 is not
      installed.
docstring_summary: Returns "15, path" based on the result of invoking vswhere.exe
      If no install is found, returns "None, None"
docstring_tokens: Returns 15 path based on the result of invoking vswhere . exe If no install is found returns None None
function: def _find_vc2017():
      """Returns "15, path" based on the result of invoking vswhere.exe
      If no install is found, returns "None, None"
  
      The version is returned to avoid unnecessarily changing the function
      result. It may be ignored when the path is not None.
  
      If vswhere.exe is not available, by definition, VS 2017 is not
      installed.
      """
      import json
  
      root = os.environ.get("ProgramFiles(x86)") or os.environ.get("ProgramFiles")
      if not root:
          return None, None
  
      try:
          path = subprocess.check_output([
              os.path.join(root, "Microsoft Visual Studio", "Installer", "vswhere.exe"),
              "-latest",
              "-prerelease",
              "-requires", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
              "-property", "installationPath",
              "-products", "*",
          ], encoding="mbcs", errors="strict").strip()
      except (subprocess.CalledProcessError, OSError, UnicodeDecodeError):
          return None, None
  
      path = os.path.join(path, "VC", "Auxiliary", "Build")
      if os.path.isdir(path):
          return 15, path
  
      return None, None
function_tokens: def _find_vc2017 ( ) : import json root = os . environ . get ( "ProgramFiles(x86)" ) or os . environ . get ( "ProgramFiles" ) if not root : return None , None try : path = subprocess . check_output ( [ os . path . join ( root , "Microsoft Visual Studio" , "Installer" , "vswhere.exe" ) , "-latest" , "-prerelease" , "-requires" , "Microsoft.VisualStudio.Component.VC.Tools.x86.x64" , "-property" , "installationPath" , "-products" , "*" , ] , encoding = "mbcs" , errors = "strict" ) . strip ( ) except ( subprocess . CalledProcessError , OSError , UnicodeDecodeError ) : return None , None path = os . path . join ( path , "VC" , "Auxiliary" , "Build" ) if os . path . isdir ( path ) : return 15 , path return None , None