handle soapy not being installed at all, references #42
This commit is contained in:
parent
9c82a80273
commit
092a2e5ca0
@ -221,6 +221,7 @@ class FeatureDetector(object):
|
|||||||
return self._check_connector("soapy_connector")
|
return self._check_connector("soapy_connector")
|
||||||
|
|
||||||
def _has_soapy_driver(self, driver):
|
def _has_soapy_driver(self, driver):
|
||||||
|
try:
|
||||||
process = subprocess.Popen(["SoapySDRUtil", "--info"], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
|
process = subprocess.Popen(["SoapySDRUtil", "--info"], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
|
||||||
driverRegex = re.compile("^Module found: .*lib(.*)Support.so")
|
driverRegex = re.compile("^Module found: .*lib(.*)Support.so")
|
||||||
|
|
||||||
@ -230,6 +231,8 @@ class FeatureDetector(object):
|
|||||||
|
|
||||||
lines = [matchLine(line) for line in process.stdout]
|
lines = [matchLine(line) for line in process.stdout]
|
||||||
return reduce(or_, lines, False)
|
return reduce(or_, lines, False)
|
||||||
|
except FileNotFoundError:
|
||||||
|
return False
|
||||||
|
|
||||||
def has_soapy_sdrplay(self):
|
def has_soapy_sdrplay(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user