We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d60837b commit bca2f2cCopy full SHA for bca2f2c
1 file changed
absscpi/client.py
@@ -181,6 +181,12 @@ def __init__(self, lib: str = LIB_NAME):
181
f"The SCPI library could not be loaded ({lib_path})"
182
) from None
183
184
+ # assume we're at version 1.0.0 unless we can load the version function
185
+ # and find out otherwise (this function is new in 1.1.0)
186
+ self.__lib_version = 1_00_00
187
+ if hasattr(self.__dll, "AbsScpiClient_Version"):
188
+ self.__lib_version = self.__dll.AbsScpiClient_Version()
189
+
190
def __enter__(self):
191
self.init()
192
return self
0 commit comments