49a50,54
> # Set the working directory in case we are executing from
> # outside gem5's source tree
> import os
> os.chdir(os.path.join(os.path.dirname(__file__), "../"))
>
59c64
< execfile('configs/example/memcheck.py', globals())
---
> execfile(srcpath('configs/example/memcheck.py'), globals())