- fix pathes

This commit is contained in:
Dmytro Bogovych 2023-09-07 09:16:39 +03:00
parent eb20881fcf
commit 0c4710bbc7
1 changed files with 2 additions and 2 deletions

View File

@ -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."""