contrib/monitoring Applied flake8
This commit is contained in:
parent
0b7baf4437
commit
a9add384b7
|
@ -24,10 +24,12 @@ import sys
|
|||
import platform
|
||||
import os
|
||||
|
||||
|
||||
def error(message):
|
||||
print(message)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def get_version_string(library_path):
|
||||
try:
|
||||
lib = ctypes.cdll.LoadLibrary(library_path)
|
||||
|
@ -58,6 +60,7 @@ def get_version_string(library_path):
|
|||
|
||||
return version_str
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if platform.system() == 'Linux':
|
||||
default_lib = 'libfdb_c.so'
|
||||
|
|
Loading…
Reference in New Issue