

def _validator(key, val, env, searchfunc):
    '\n    '
    import os
    if (env[key] is True):
        if searchfunc:
            env[key] = searchfunc(key, val)
    elif (env[key] and (not os.path.exists(val))):
        raise SCons.Errors.UserError(('Path does not exist for option %s: %s' % (key, val)))

dataset/ETHPy150Open kayhayen/Nuitka/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Variables/PackageVariable.py _validator/original