summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Lamoureux <andrew@vector35.com>2019-03-23 00:58:28 -0400
committerAndrew Lamoureux <andrew@vector35.com>2019-03-23 00:58:28 -0400
commitaf001b025b5aad5b205cb97977f3951fe6ef2a71 (patch)
treeb1cfade544a0867955e417efefc42f7d9bff235a /python
parentec16360da23169b84ec2c7345970fdcdfe75e179 (diff)
kaitai: omit '_m_' prefix for fields in struct path
Diffstat (limited to 'python')
-rw-r--r--python/examples/kaitai/view.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/examples/kaitai/view.py b/python/examples/kaitai/view.py
index 30a088ca..a30140c0 100644
--- a/python/examples/kaitai/view.py
+++ b/python/examples/kaitai/view.py
@@ -253,7 +253,10 @@ class KaitaiView(QScrollArea, View):
itemTmp = item
while itemTmp.parent():
itemTmp = itemTmp.parent()
- structPath = itemTmp.label + '.' + structPath
+ label = itemTmp.label
+ if label.startswith('_m_'):
+ label = label[3:]
+ structPath = label + '.' + structPath
self.structPath.setText('root.' + structPath)
#