- fix pathes
This commit is contained in:
parent
eb20881fcf
commit
0c4710bbc7
|
|
@ -12,9 +12,9 @@ class Bluetoothctl:
|
|||
"""A wrapper for bluetoothctl utility."""
|
||||
|
||||
def __init__(self):
|
||||
out = subprocess.check_output("rfkill unblock bluetooth", shell = True)
|
||||
out = subprocess.check_output("/usr/sbin/rfkill unblock bluetooth", shell = True)
|
||||
# print("Bluetoothctl")
|
||||
self.child = pexpect.spawn("bluetoothctl", echo = False)
|
||||
self.child = pexpect.spawn("/usr/bin/bluetoothctl", echo = False)
|
||||
|
||||
def get_output(self, command, pause = 0):
|
||||
"""Run a command in bluetoothctl prompt, return output as a list of lines."""
|
||||
|
|
|
|||
Loading…
Reference in New Issue