diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-02-25 11:55:02 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-03-18 15:13:52 +0000 |
commit | fe3e8084959a6910f4c8d075c5c03e40d0269527 (patch) | |
tree | 7e4e43608dfd8d3d5544177e439f57733f3837d8 /configs/common/FSConfig.py | |
parent | 9e22a2ab603d743b187108986cfbeba07c0c0b8d (diff) | |
download | gem5-fe3e8084959a6910f4c8d075c5c03e40d0269527.tar.xz |
configs: Use absolute import paths
Use absoluate import paths to be Python 3 compatible. This also
imports absolute_import from __future__ to ensure that Python 2.7
behaves the same way as Python 3.
Change-Id: Ica06ed95814e9cd3e768b3e1785075e36f6e56d0
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/16708
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'configs/common/FSConfig.py')
-rw-r--r-- | configs/common/FSConfig.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py index 13c29ef1c..8b67c85e1 100644 --- a/configs/common/FSConfig.py +++ b/configs/common/FSConfig.py @@ -40,11 +40,12 @@ # Authors: Kevin Lim from __future__ import print_function +from __future__ import absolute_import from m5.objects import * -from Benchmarks import * from m5.util import * -from common import PlatformConfig +from .Benchmarks import * +from . import PlatformConfig # Populate to reflect supported os types per target ISA os_types = { 'alpha' : [ 'linux' ], |