

def scons_env(env, add=''):
    opath = path.dirname(path.abspath('$TARGET'))
    lstr = (((('thrift --gen cpp -o ' + opath) + ' ') + add) + ' $SOURCE')
    cppbuild = Builder(action=lstr)
    env.Append(BUILDERS={
        'ThriftCpp': cppbuild,
    })

dataset/ETHPy150Open JT5D/Alfred-Popclip-Sublime/Sublime Text 2/SublimeEvernote/lib/thrift/TSCons.py scons_env/original