changed absolute path to current location

This commit is contained in:
root 2017-02-19 23:04:17 +00:00
parent e72fffb600
commit a5faeec127
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import pifacecommon.mcp23s17
import time
from subprocess import call
import sys
import os
button_count = 2
longpress_delay = 0.4
@ -78,7 +79,7 @@ def switch_longpressed(event):
event.chip.output_pins[event.pin_num].toggle()
elif pin_shortpress_count[event.pin_num] == 2:
if event.pin_num == 0:
call(["/root/chch-power/light.sh"])
call(["/home/automation/chch-power/light.sh"])
chch_status_output(event.chip)
# switch all power off with a very long press