From 3a76c38d771a8a7bb2a512a43edf87208b887094 Mon Sep 17 00:00:00 2001 From: Jason Lowe-Power Date: Thu, 6 Aug 2020 16:43:08 -0700 Subject: [PATCH] python: Import reduce function in FileSystemConfig Not sure if this is required due to python3 or something else, but I got the error "NameError: name 'reduce' is not defined". This fixes that error. Change-Id: I2dd71674306abcad1a90311664b18b9eee29b9ac Signed-off-by: Jason Lowe-Power Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32374 Reviewed-by: Gabe Black Maintainer: Jason Lowe-Power Tested-by: kokoro --- configs/common/FileSystemConfig.py | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/common/FileSystemConfig.py b/configs/common/FileSystemConfig.py index ec27656e0..29041fdcd 100644 --- a/configs/common/FileSystemConfig.py +++ b/configs/common/FileSystemConfig.py @@ -42,6 +42,7 @@ import m5 from m5.objects import * from m5.util.convert import * +from functools import reduce import operator, os, platform, getpass from os import mkdir, makedirs, getpid, listdir, stat, access from pwd import getpwuid -- 2.30.2