1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 50 unchanged lines hidden (view full) --- 59################################################### 60 61# Python library imports 62import sys 63import os 64 65# Check for recent-enough Python and SCons versions 66EnsurePythonVersion(2,3) |
67 |
68# Ironically, SCons 0.96 dies if you give EnsureSconsVersion a 69# 3-element version number. 70min_scons_version = (0,96,91) 71try: 72 EnsureSConsVersion(*min_scons_version) 73except: 74 print "Error checking current SCons version." 75 print "SCons", ".".join(map(str,min_scons_version)), "or greater required." 76 Exit(2) 77 78 |
79# The absolute path to the current directory (where this file lives). 80ROOT = Dir('.').abspath 81 82# Paths to the M5 and external source trees. 83SRCDIR = os.path.join(ROOT, 'src') 84 85# tell python where to find m5 python code 86sys.path.append(os.path.join(ROOT, 'src/python')) --- 351 unchanged lines hidden --- |