| commit | eda9cb063b7052e7163042d85f1750f78b4bf3a7 | [log] [tgz] |
|---|---|---|
| author | Tim Edwards <tim@opencircuitdesign.com> | Wed Jul 13 20:54:57 2022 +0200 |
| committer | Tim Edwards <tim@opencircuitdesign.com> | Wed Jul 13 20:54:57 2022 +0200 |
| tree | 170fe87654f65380635988790342d052dff716fa | |
| parent | 702caf0cc0f32f59008f3e389b627a66d733c924 [diff] |
Corrected the liberty library file generator script to avoid failing on blank lines.
diff --git a/common/create_lib_library.py b/common/create_lib_library.py index 6538d72..0170969 100755 --- a/common/create_lib_library.py +++ b/common/create_lib_library.py
@@ -92,7 +92,8 @@ for lline in llines: if headerdone: if not headerseen: - if not lline.split()[0] == 'cell': + ltok = lline.split() + if len(ltok) == 0 or not ltok[0] == 'cell': continue else: headerseen = True