Use the relative path as the module folder route

parent a7f5f158
......@@ -30,6 +30,7 @@ import sys
from hdlmake.tools import load_syn_tool, load_sim_tool
from hdlmake.util import shell
from hdlmake.util import path as path_mod
from hdlmake.util.termcolor import colored
from hdlmake import new_dep_solver as dep_solver
from hdlmake.srcfile import SourceFileSet
......@@ -106,7 +107,7 @@ class Action(list):
from hdlmake.module import Module, ModuleArgs
self._deps_solved = False
new_module_args = ModuleArgs()
new_module_args.set_args(parent, url, source, fetchto)
new_module_args.set_args(parent, path_mod.relpath(url), source, fetchto)
new_module = Module(new_module_args, self)
if not self.__contains(new_module):
self._add(new_module)
......
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