Changed run_command to use create_subprocess_shell

This commit is contained in:
Dusty.P
2018-04-14 03:11:13 -08:00
parent a87f10d985
commit c6c4b1eb91
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -77,8 +77,8 @@ def paginate(text, maxlen=1990):
async def run_command(*args):
# Create subprocess
process = await asyncio.create_subprocess_exec(
*args,
process = await asyncio.create_subprocess_shell(
args,
# stdout must a pipe to be accessible as process.stdout
stdout=asyncio.subprocess.PIPE)
# Wait for the subprocess to finish