summaryrefslogtreecommitdiff
path: root/test/genini.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/genini.py')
-rw-r--r--test/genini.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/genini.py b/test/genini.py
index bad173365..e96d7069c 100644
--- a/test/genini.py
+++ b/test/genini.py
@@ -25,13 +25,13 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-import getopt, os, sys
+import getopt, os, os.path, sys
sys.path.append('..')
sys.path.append('../configs/kernel')
sys.path.append('../sim/pyconfig')
-from importer import mpy_exec
+from importer import mpy_exec, AddToPath
from m5config import *
try:
@@ -50,6 +50,7 @@ except getopt.GetoptError:
sys.exit('Improper Usage')
for arg in args:
+ AddToPath(os.path.dirname(arg))
mpy_exec(file(arg, 'r'), globals())
if globals().has_key('root') and isinstance(root, type) \