projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
138181f
)
make/_misoc_import: force external path search
author
Sebastien Bourdeauducq
<sebastien@milkymist.org>
Tue, 3 Dec 2013 20:36:58 +0000
(21:36 +0100)
committer
Sebastien Bourdeauducq
<sebastien@milkymist.org>
Tue, 3 Dec 2013 20:36:58 +0000
(21:36 +0100)
make.py
patch
|
blob
|
history
diff --git
a/make.py
b/make.py
index 629c945a1c55589d255a686ea06daf2543dc09fb..ff987b9202995d6e1cf9aa4e1a7bb21380e43970 100755
(executable)
--- a/
make.py
+++ b/
make.py
@@
-1,6
+1,6
@@
#!/usr/bin/env python3
-import argparse, importlib, subprocess, struct
+import
sys,
argparse, importlib, subprocess, struct
from mibuild.tools import write_to_file
from migen.util.misc import autotype
@@
-31,6
+31,10
@@
def _get_args():
def _misoc_import(default, external, name):
if external:
+ try:
+ del sys.modules[name] # force external path search
+ except KeyError:
+ pass
loader = importlib.find_loader(name, [external])
if loader is None:
raise ImportError("Module not found: "+name)