diff --git a/src/bt_controller.py b/src/bt_controller.py index 121e14f..a13176a 100644 --- a/src/bt_controller.py +++ b/src/bt_controller.py @@ -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."""