<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def build(args):
 """ Invoke the scons build system from the current directory, exactly as if the scons tool had been invoked. """


    # Do some sleuthing work to find scons if it's not installed into an importable
    # place, as it is usually not.
    scons_path = "Error"
    try:
        scons_path = resource_path('scons-local-{}'.format(SCONS_VERSION), expect='folder')
        sys.path.insert(0, scons_path)
        import SCons.Script
    except ImportError:
        raise BuildError("Couldn't find internal scons packaged w/ iotile-build. This is a bug that should be reported",
                         scons_path=scons_path)

    site_path = resource_path('site_scons', expect='folder')

    all_args = ['iotile', '--site-dir=%s' % site_path, '-Q']
    sys.argv = all_args + list(args)
    SCons.Script.main()