Skip to content

Commit b764241

Browse files
c1728p9adbridge
authored andcommitted
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: 329be06 - "exporters - group by directories in prj root"
1 parent f4118c0 commit b764241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/export/exporters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def make_key(self, src):
132132
"""
133133
rel_path = relpath(src, self.resources.file_basepath[src])
134134
path_list = os.path.normpath(rel_path).split(os.sep)
135-
assert path_list >= 1
135+
assert len(path_list) >= 1
136136
if len(path_list) == 1:
137137
key = self.project_name
138138
else:

0 commit comments

Comments
 (0)