python: Insert gem5's m5 importer at the front of sys.meta_path.
This is equivalent to putting a path first in $PATH, ie it will make
sure that m5.foo resolves to gem5's internal m5 package, and not
whatever directory named m5 happens to be nearby.
Reviewed-by: Gabe Black <firstname.lastname@example.org>
Maintainer: Gabe Black <email@example.com>
Tested-by: kokoro <firstname.lastname@example.org>
1 file changed