The python script provided in the original repo fails trying to access an empty string as a file, this version removes any empty strings in the files to build.

pull/159/head
tkuyucu 2013-12-02 16:34:19 +01:00
parent 685274563e
commit c845f39c50
1 changed files with 6 additions and 1 deletions

View File

@ -226,6 +226,7 @@ class mbedToolchain:
target_mod_time = stat(target).st_mtime
for d in dependencies:
# Some objects are not provided with full path and here we do not have
# information about the library paths. Safe option: assume an update
if not d or not exists(d):
@ -324,6 +325,10 @@ class mbedToolchain:
# Handle a single file
if type(files_paths) != ListType: files_paths = [files_paths]
for source in files_paths:
if source is None:
files_paths.remove(source)
for source in files_paths:
if rel_path is not None:
relative_path = relpath(source, rel_path)