diff options
author | Nathan Binkert <binkertn@umich.edu> | 2005-01-17 23:41:35 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2005-01-17 23:41:35 -0500 |
commit | 82df189bad55fcfc91cc305617bf65c4db9416b6 (patch) | |
tree | 7efddef763ebd2c39dd33862d0a1e8ac34a70eed /test/genini.py | |
parent | cc4e4ab7e1fdb83bfc58079753f5c2af15f405c6 (diff) | |
download | gem5-82df189bad55fcfc91cc305617bf65c4db9416b6.tar.xz |
Config cleanups
sim/pyconfig/m5config.py:
Remove unused code
remove the defined() function that was masking the one
that I really wanted
test/genini.py:
Add the directory that a script was executed from to the
path
--HG--
extra : convert_revision : a1861065b2de46d77c94691d0c5a7865cdce0f09
Diffstat (limited to 'test/genini.py')
-rw-r--r-- | test/genini.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/genini.py b/test/genini.py index bad173365..e96d7069c 100644 --- a/test/genini.py +++ b/test/genini.py @@ -25,13 +25,13 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -import getopt, os, sys +import getopt, os, os.path, sys sys.path.append('..') sys.path.append('../configs/kernel') sys.path.append('../sim/pyconfig') -from importer import mpy_exec +from importer import mpy_exec, AddToPath from m5config import * try: @@ -50,6 +50,7 @@ except getopt.GetoptError: sys.exit('Improper Usage') for arg in args: + AddToPath(os.path.dirname(arg)) mpy_exec(file(arg, 'r'), globals()) if globals().has_key('root') and isinstance(root, type) \ |