

def createFakeBinaries():
    fakeBinDir = tempfile.mkdtemp()
    paths = os.environ['PATH'].split(':')
    paths.append(fakeBinDir)
    os.environ['PATH'] = ':'.join(paths)
    for f in [os.path.join(fakeBinDir, f) for f in listOfBinaries]:
        open(f, 'w').close()
        os.chmod(f, stat.S_IRWXU)
    return fakeBinDir

dataset/ETHPy150Open thasso/pyjip/test/test_cluster.py createFakeBinaries/original