mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
generic_platform: get absolute path for added sources
This commit is contained in:
parent
709845e618
commit
feec035cc8
1 changed files with 1 additions and 0 deletions
|
@ -182,6 +182,7 @@ class GenericPlatform:
|
|||
language = tools.language_by_filename(filename)
|
||||
if language is None:
|
||||
language = "verilog" # default to Verilog
|
||||
filename = os.path.abspath(filename)
|
||||
self.sources.append((filename, language))
|
||||
|
||||
def add_sources(self, path, *filenames, language=None):
|
||||
|
|
Loading…
Reference in a new issue