def linux_install_data_files(data_files):
    for item in data_files:
        path = os.path.join(sys.prefix, item[0])
        print "{0}->{1}".format(item[1], path)
        try:
            os.makedirs(os.path.split(path)[0])
        except __HOLE__, e:
            pass
        try:
            shutil.copy(item[1], path)
        except Exception, e:
            print e

    try:
        call(['update-desktop-database'])
    except:
        print "update-desktop-database: failed"
    try:
        call(['gtk-update-icon-cache', os.path.join(sys.prefix, 'share/icons/hicolor')])
    except:
        print "update-desktop-database: failed"
dataset/ETHPy150Open legalosLOTR/mdb/setup.py/linux_install_data_files