From 0c4710bbc7d3b5fbdf36b1b3c5c882e11aba07f6 Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Thu, 7 Sep 2023 09:16:39 +0300 Subject: [PATCH] - fix pathes --- src/bt_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."""