python: Add mechanism to override code compiled into the exectuable
Review Request #29 - Created July 5, 2010 and submitted
| Information | |
|---|---|
| Nathan Binkert | |
| gem5 | |
| Reviewers | |
| Default | |
python: Add mechanism to override code compiled into the exectuable If the user sets the environment variable M5_OVERRIDE to True, then imports that would normally find python code compiled into the executable will instead first check in the absolute location where the code was found during the build of the executable. This only works for files in the src (or extras) directories, not automatically generated files. This is a developer feature!
Posted (July 5, 2010, 2:01 p.m.)
-
src/SConscript (Diff revision 1) -
What is srcpath used for? I see it getting set here and then passed around a lot but I don't see it getting used.
-
src/python/importer.py (Diff revision 1) -
I think a more descriptive/specific env var is called for... how about M5_USE_PY_SOURCE?
