'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.'

def find_swig(self):

    if (os.name == 'posix'):
        return 'swig'
    elif (os.name == 'nt'):
        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))
