From 3debe0419a35911423d5932d71e2beccc048b0b0 Mon Sep 17 00:00:00 2001 From: "Frederic.Pillon" Date: Tue, 20 Mar 2018 09:32:08 +0100 Subject: [PATCH] [genpinmap] use current year instead of constant one Signed-off-by: Frederic.Pillon --- src/genpinmap/genpinmap_arduino.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/genpinmap/genpinmap_arduino.py b/src/genpinmap/genpinmap_arduino.py index 401337ea..b9ffef64 100644 --- a/src/genpinmap/genpinmap_arduino.py +++ b/src/genpinmap/genpinmap_arduino.py @@ -1,6 +1,7 @@ import sys import re import os +import datetime from xml.dom import minidom from xml.dom.minidom import parse, Node io_list = [] #'PIN','name' @@ -188,7 +189,7 @@ def store_qspi (pin, name, signal): def print_header(): s = ("""/* ******************************************************************************* - * Copyright (c) 2016, STMicroelectronics + * Copyright (c) %i, STMicroelectronics * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -223,7 +224,7 @@ def print_header(): // If you change them, you will have to know what you do // ===== -""" % re.sub('\.c$', '', out_filename)) +""" % (datetime.datetime.now().year, re.sub('\.c$', '', out_filename))) out_file.write( s) def print_all_lists():