From 05a099a4bf72e28c87ae35476f747882ae5328eb Mon Sep 17 00:00:00 2001 From: Boulet Date: Wed, 20 Sep 2017 14:42:48 +0200 Subject: [PATCH] Use python2 instead of python --- pushjet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pushjet.py b/pushjet.py index ce87c17..25b97f0 100644 --- a/pushjet.py +++ b/pushjet.py @@ -67,7 +67,7 @@ def send_message(title, message): timeout = 1 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', '') def send_message_callback(data, command, return_code, out, err):