def installPaths(project, paths, out):
    for destPath in paths:
        sources = []
        source = paths[destPath]
        
        if isinstance(source, tuple) and isinstance(source, list):
            expandedPaths = [project.expandString(path) for path in source]
            sources += project.getPathList(expandedPaths)
        else:
            expandedPath = project.expandString(source)
            sources += project.getPathList((expandedPath,))

        fullDestPath = project.expandString(destPath)

        for sourcePath in sources:
            try:
                installFile(project, out, sourcePath, fullDestPath)
            except:
                result = 1
                break
dataset/ETHPy150Open joehewitt/devon/devon/make.py/installPaths/operator `or` -> `and`