Hello,
I found that new version of gem5 cannot run on python 2.4 because some
sentences in import.py cannot be supported by python 2.4. I just modified
the file and changed it to the old version and it worked. But I am not sure
if this approach can solve the problem forever.
The original new version of src/python/import.py is:
if os.path.basename(srcfile) == '__init__.py':
mod.__path__ = fullname.split('.')
mod.__package__ = fullname
* else:*
* mod.__package__ = fullname.rpartition('.')[0]*
mod.__file__ = srcfile
I changed it to
if os.path.basename(srcfile) == '__init__.py':
mod.__path__ = fullname.split('.')
mod.__package__ = fullname
mod.__file__ = srcfile
That is: I removed the else part.
Could anybody tell me if it is okay, or it's gonna cause other problems?
Thanks.
Best regards,
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users