commit eb53e063a53bea0175e048279a21b4ce75f8fbef
parent 07f13bd10c8cae1146f7487ce4a2141b3aa5c905
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Fri, 11 Nov 2016 20:18:09 +0100
Fix shell
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/intel_screenbot/__init__.py b/intel_screenbot/__init__.py
@@ -22,10 +22,10 @@ def _screencap(url, filename, SACSID, CSRF, search, bot, event):
logger.info("screencapping {} and saving as {}".format(url, filename))
if search == False:
command = 'phantomjs hangupsbot/plugins/intel_screenbot/screencap.js "' + SACSID + '" "' + CSRF + '" "' + url + '" "' + filename + '"'
- process = yield from asyncio.create_subprocess_exec(command, shell=False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ process = yield from asyncio.create_subprocess_shell(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
else:
command = 'phantomjs hangupsbot/plugins/intel_screenbot/screencap.js "' + SACSID + '" "' + CSRF + '" "' + url + '" "' + filename + '" "' + search + '"'
- process = yield from asyncio.create_subprocess_exec(command, shell=False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ process = yield from asyncio.create_subprocess_shell(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
# make sure phantomjs has time to download/process the page
# but if we get nothing after 30 sec, just move on