(RTT_ROOT)
| 327 | |
| 328 | # Exclude utestcases |
| 329 | def exclude_utestcases(RTT_ROOT): |
| 330 | if os.path.isfile(os.path.join(RTT_ROOT, 'Kconfig.utestcases')): |
| 331 | return |
| 332 | |
| 333 | if not os.path.isfile(os.path.join(RTT_ROOT, 'Kconfig')): |
| 334 | return |
| 335 | |
| 336 | with open(os.path.join(RTT_ROOT, 'Kconfig'), 'r') as f: |
| 337 | data = f.readlines() |
| 338 | with open(os.path.join(RTT_ROOT, 'Kconfig'), 'w') as f: |
| 339 | for line in data: |
| 340 | if line.find('Kconfig.utestcases') == -1: |
| 341 | f.write(line) |
| 342 | |
| 343 | |
| 344 | # fix locale for kconfiglib |