From 319424213b9098cd99ddedfca5043a77a2b49dd4 Mon Sep 17 00:00:00 2001 From: "A. Challande" Date: Fri, 4 Nov 2022 17:39:52 +0100 Subject: [PATCH] feat: Add a direct accessor to the program name. --- bindings/python/quokka/program.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bindings/python/quokka/program.py b/bindings/python/quokka/program.py index 836a19c4..5ee0efab 100644 --- a/bindings/python/quokka/program.py +++ b/bindings/python/quokka/program.py @@ -159,6 +159,11 @@ def __hash__(self) -> int: """Hash of the Program (use the hash from the exported file)""" return int(self.proto.meta.hash.hash_value, 16) + @property + def name(self) -> str: + """Returns the underlying binary name""" + return self.proto.meta.executable_name + @property def hash(self) -> str: """Returns the hash value of the binary (either sha256 or MD5)."""