From: Luke Kenneth Casson Leighton Date: Sat, 27 Jun 2020 18:23:41 +0000 (+0100) Subject: use prefix where it exists X-Git-Tag: 24jan2021_ls180~47 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9d5288c4fe2818b747f0497dbed14ed04960cd8;p=nmutil.git use prefix where it exists --- diff --git a/src/nmutil/iocontrol.py b/src/nmutil/iocontrol.py index 917e105..f83d315 100644 --- a/src/nmutil/iocontrol.py +++ b/src/nmutil/iocontrol.py @@ -107,7 +107,7 @@ class RecordObject(Record): print (self, self.name, v.name) v.name = prefix + v.name elif isinstance(v, Record): - add_prefix_to_record_signals(self.name + "_", v) + add_prefix_to_record_signals(prefix, v) self.fields[k] = v #print ("RecordObject setattr", k, v)