From: Jason Lowe-Power Date: Thu, 6 Aug 2020 23:43:08 +0000 (-0700) Subject: python: Import reduce function in FileSystemConfig X-Git-Tag: v20.1.0.0~176 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a76c38d771a8a7bb2a512a43edf87208b887094;p=gem5.git 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 --- 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