docstr: Return the name of the SWIG executable.  On Unix, this is
  just "swig" -- it should be in the PATH.  Tries a bit harder on
  Windows.
docstr_tok: ["Return","the","name","of","the","SWIG","executable",".","On","Unix",",","this","is","just","``","swig","''","--","it","should","be","in","the","PATH",".","Tries","a","bit","harder","on","Windows","."]
code: def find_swig(self):
      """Return the name of the SWIG executable.  On Unix, this is
      just "swig" -- it should be in the PATH.  Tries a bit harder on
      Windows.
      """
      if os.name == "posix":
          return "swig"
      elif os.name == "nt":
          # Look for SWIG in its standard installation directory on
          # Windows (or so I presume!).  If we find it there, great;
          # if not, act like Unix and assume it's in the PATH.
          for vers in ("1.3", "1.2", "1.1"):
              fn = os.path.join("c:\\swig%s" % vers, "swig.exe")
              if os.path.isfile(fn):
                  return fn
          else:
              return "swig.exe"
      else:
          raise DistutilsPlatformError(
              "I don't know how to find (much less run) SWIG "
              "on platform '%s'" % os.name
          )
  
imports: import contextlib
  import os
  import re
  import sys
  from ..core import Command
  from ..errors import DistutilsOptionError, DistutilsSetupError, CCompilerError, DistutilsError, CompileError, DistutilsPlatformError
  from ..sysconfig import customize_compiler, get_python_version
  from ..sysconfig import get_config_h_filename
  from .._modified import newer_group
  from ..extension import Extension
  from ..util import get_platform
  from distutils._log import log
  from .None import py37compat
  from site import USER_BASE
label_desc: Use image node_id 13 for calling the build_ext obj's underlying member method code with example usage: obj.find_swig() and returns: str, str, fn