diff --git a/relais.py b/relais.py index c7b8a0e..a65aac7 100644 --- a/relais.py +++ b/relais.py @@ -2,10 +2,10 @@ from subprocess import Popen def switch_off(): - popen = Popen(['sudo', 'bash', '/home/linaro/bluetooth_drone/touch_switch', 'off']) + popen = Popen(['sudo', '/home/linaro/bluetooth_drone/touch_switch', 'off']) popen.wait() def switch_on(): - popen = Popen(['sudo', 'bash', '/home/linaro/bluetooth_drone/touch_switch', 'on']) + popen = Popen(['sudo', '/home/linaro/bluetooth_drone/touch_switch', 'on']) popen.wait()