Commit ed84c95f authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

fetch.py: HDLMAKE_COREDIR should override fetchto (if->elif)

parent 0b29b06e
......@@ -141,7 +141,7 @@ class ModulePool(list):
else:
if self.global_fetch: # if there is global fetch parameter (HDLMAKE_COREDIR env variable)
fetchto = self.global_fetch # screw module's particular fetchto
if global_mod.top_module:
elif global_mod.top_module:
fetchto = global_mod.top_module.fetchto
new_module = Module(parent=parent, url=url, source=source, fetchto=fetchto, pool=self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment