generic_platform: get absolute path for added sources
This commit is contained in:
parent
709845e618
commit
feec035cc8
|
@ -182,6 +182,7 @@ class GenericPlatform:
|
||||||
language = tools.language_by_filename(filename)
|
language = tools.language_by_filename(filename)
|
||||||
if language is None:
|
if language is None:
|
||||||
language = "verilog" # default to Verilog
|
language = "verilog" # default to Verilog
|
||||||
|
filename = os.path.abspath(filename)
|
||||||
self.sources.append((filename, language))
|
self.sources.append((filename, language))
|
||||||
|
|
||||||
def add_sources(self, path, *filenames, language=None):
|
def add_sources(self, path, *filenames, language=None):
|
||||||
|
|
Loading…
Reference in New Issue