parent
cad2e8f86a
commit
49812ba3b5
13
assembly.py
13
assembly.py
|
@ -833,14 +833,15 @@ class AsmElement(AsmBase):
|
||||||
|
|
||||||
# This give us reference to child assembly's immediate child
|
# This give us reference to child assembly's immediate child
|
||||||
# without trailing dot.
|
# without trailing dot.
|
||||||
prefix = subname[:-len(ret.Subname)+1]
|
prefix = subname[:-len(ret.Subname)-1]
|
||||||
|
|
||||||
# Pop the immediate child name, and replace it with child
|
# Pop the immediate child name
|
||||||
# assembly's element group name
|
prefix = prefix[:prefix.rfind('.')]
|
||||||
prefix = prefix[:prefix.rfind('.')+1] + \
|
|
||||||
resolveAssembly(ret.Assembly).getElementGroup().Name
|
|
||||||
|
|
||||||
subname = '{}.${}.'.format(prefix,element.Label)
|
# Finally, generate the subname, by combining the prefix with
|
||||||
|
# the element group index (i.e. the 1 below) and the linked
|
||||||
|
# element label
|
||||||
|
subname = '{}.1.${}.'.format(prefix,element.Label)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise RuntimeError('Invalid selection {}.{}'.format(
|
raise RuntimeError('Invalid selection {}.{}'.format(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user