make.py: use sys.path.insert(0...) to allow external designs to have specific targets...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Jul 2015 15:00:03 +0000 (17:00 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Jul 2015 15:25:50 +0000 (17:25 +0200)
make.py

diff --git a/make.py b/make.py
index 400f24d5a7c7989ef2afe6149fd02d0792e63988..61ed5fd578afce4fe39f5f11394485dda01d6ba9 100755 (executable)
--- a/make.py
+++ b/make.py
@@ -64,7 +64,7 @@ if __name__ == "__main__":
     if args.external:
         external_target = os.path.join(args.external, "targets")
         external_platform = os.path.join(args.external, "platforms")
-        sys.path.insert(1, os.path.abspath(args.external))
+        sys.path.insert(0, os.path.abspath(args.external))
 
     # create top-level SoC object
     target_module = misoc_import("targets", external_target, args.target)