mirror of https://github.com/ARMmbed/mbed-os.git
Fix invalid assert in exporters
Assert that the length is greater than one rather than the value
itself. This bug was introduced in the commit:
329be06ad0
-
"exporters - group by directories in prj root"
pull/3574/head
parent
ccab2c5dae
commit
06ca004bfa
|
@ -132,7 +132,7 @@ class Exporter(object):
|
|||
"""
|
||||
rel_path = relpath(src, self.resources.file_basepath[src])
|
||||
path_list = os.path.normpath(rel_path).split(os.sep)
|
||||
assert path_list >= 1
|
||||
assert len(path_list) >= 1
|
||||
if len(path_list) == 1:
|
||||
key = self.project_name
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue