generic_platform: get absolute path for added sources

This commit is contained in:
Sebastien Bourdeauducq 2013-02-12 19:16:00 +01:00
parent 709845e618
commit feec035cc8
1 changed files with 1 additions and 0 deletions

View File

@ -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):