From: Stephen Warren <swarren@xxxxxxxxxx> csv-to-board currently parses the header row to find out which column each desired piece of data is located in. However, it checks a hard-coded column to determine which row is the header row. Enhance the script to allow the header row identification data to be in an arbitrary column. Signed-off-by: Stephen Warren <swarren@xxxxxxxxxx> --- csv-to-board.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csv-to-board.py b/csv-to-board.py index 1d98cfa74a7a..2f99f4afa48f 100755 --- a/csv-to-board.py +++ b/csv-to-board.py @@ -193,7 +193,7 @@ with open(board_conf['filename'], newline='') as fh: # Header rows if not found_header: - if row[0] != 'Ball Name': + if 'Ball Name' not in row: if lnum > 25: print('ERROR: Header row not found', file=sys.stderr) sys.exit(1) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html