Commit a7493238 authored by Pieter Van Trappen's avatar Pieter Van Trappen

fmceeprom - allow for installed library on target

parent 22ee294c
......@@ -5,7 +5,10 @@ from ctypes import cdll, Structure, POINTER, cast, c_int, \
import array
import struct
lib = cdll.LoadLibrary("./libipmi/libipmi.so")
try:
lib = cdll.LoadLibrary("./libipmi/libipmi.so")
except OSError:
lib = cdll.LoadLibrary("/usr/lib/libipmi.so")
class c_CommonHeader(Structure):
_fields_ = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment