From 143a86ed89699d7bd3d3cb68cd5e500f03f2f0d5 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Mon, 14 Oct 2013 23:06:31 +0200 Subject: makeSip6.py: Also convert upper-case package names Signed-off-by: Michael Buesch --- libtoprammer/chips/microchip8/makeSip6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 libtoprammer/chips/microchip8/makeSip6.py (limited to 'libtoprammer/chips/microchip8/makeSip6.py') diff --git a/libtoprammer/chips/microchip8/makeSip6.py b/libtoprammer/chips/microchip8/makeSip6.py old mode 100644 new mode 100755 index 8a72d0c..0abf7ba --- a/libtoprammer/chips/microchip8/makeSip6.py +++ b/libtoprammer/chips/microchip8/makeSip6.py @@ -36,9 +36,9 @@ def substitute(input, oldSocket, newSocket): input = re.sub('(^\s*description).+"(.*)".*', lambda m:'{} = "{} - ICD",'.format(m.group(1), m.group(2)), input) input = re.sub('(^\s*bitfile).*', lambda m:'{} = "microchip01sip6",'.format(m.group(1)), input) input = re.sub("{}".format(oldSocket), "{}".format(newSocket), input) + input = re.sub("{}".format(oldSocket.upper()), "{}".format(newSocket.upper()), input) return input - - + def makeSip(): inputFileName = '__init__.py' fin = open(inputFileName) -- cgit v1.2.3