Use python2 instead of python

This commit is contained in:
Boulet 2017-09-20 14:42:48 +02:00
parent 7909ff2ba8
commit 05a099a4bf

View File

@ -67,7 +67,7 @@ def send_message(title, message):
timeout = 1 timeout = 1
data = urlencode(data) data = urlencode(data)
cmd = 'python -c \'from urllib2 import Request, urlopen; r = urlopen(Request("%s", "%s")); print r.getcode()\'' % (host, data) cmd = 'python2 -c \'from urllib2 import Request, urlopen; r = urlopen(Request("%s", "%s")); print r.getcode()\'' % (host, data)
weechat.hook_process(cmd, timeout, 'send_message_callback', '') weechat.hook_process(cmd, timeout, 'send_message_callback', '')
def send_message_callback(data, command, return_code, out, err): def send_message_callback(data, command, return_code, out, err):