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
Russ Butler 2017-01-12 11:25:09 -06:00
parent ccab2c5dae
commit 06ca004bfa
1 changed files with 1 additions and 1 deletions

View File

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