Try this:
from m5.util import *
addToPath('./configs')
On 4/10/12, Amber Sami Kubesch <[email protected]> wrote:
> When I run
>
> % build/ARM_SE/m5.opt configs/example/cmp.py
>
> I get the messages that:
>
> gem5 compiled Apr 10 2012 12:46:06
>
> gem5 started Apr 10 2012 14:18:46
>
> gem5 executing on cluster.csl.cornell.edu
>
> command line: build/ARM_SE/m5.opt configs/example/cmp.py
>
> Traceback (most recent call last):
>
> File "<string>", line 1, in <module>
>
> File
> "/ufs/cluster/amber/Gem5_Stuff/gem5-stable-b9ba22cb23f2/src/python/m5/main.py",
> line 356, in main
>
> exec filecode in scope
>
> File "configs/example/cmp.py", line 8, in <module>
>
> m5.addToPath('./configs')
>
> AttributeError: 'module' object has no attribute 'addToPath'
>
> From the original cmp.py script, I made the modifications discussed in
> http://comments.gmane.org/gmane.comp.emulators.m5.users/8066, changing the
> line
>
> m5.AddToPath('./configs')
>
> to
>
> from m5.util import addToPath
>
> m5.addToPath('./configs')
>
>
> Any ideas on how to fix the error?
>
>
> Thanks,
>
> Amber
>
--
--
// Naderan *Mahmood;
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users