Merge pull request #1 from Grissess/master
Allow library path to be specified in env
This commit is contained in:
commit
79e6cdf4c8
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ logging.basicConfig()
|
||||||
logger = logging.getLogger('HackRf Core')
|
logger = logging.getLogger('HackRf Core')
|
||||||
logger.setLevel(logging.DEBUG)
|
logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
libhackrf = CDLL('/usr/local/lib/libhackrf.so')
|
libhackrf = CDLL(os.environ.get('LIBHACKRF', '/usr/local/lib/libhackrf.so'))
|
||||||
|
|
||||||
def enum(*sequential, **named):
|
def enum(*sequential, **named):
|
||||||
enums = dict(zip(sequential, range(len(sequential))), **named)
|
enums = dict(zip(sequential, range(len(sequential))), **named)
|
||||||
|
|
Loading…
Reference in a new issue