generic_platform: get absolute path for added sources
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Tue, 12 Feb 2013 18:16:00 +0000 (19:16 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Tue, 12 Feb 2013 18:16:00 +0000 (19:16 +0100)
mibuild/generic_platform.py

index cf2300944a1b091d33526015cafcf138c5c157e8..f634423d578fca6e3e963c7c127690d98b38c7e6 100644 (file)
@@ -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):