Merge pull request #1 from Boulet-/master

Use a specific version of python
This commit is contained in:
Adrian L Lange 2018-02-01 03:49:24 +01:00 committed by GitHub
commit e4b9c4d9eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):