Merge pull request #102 from hellerve/master

Use list of arguments in calls to `pexpect.spawn`
This commit is contained in:
Nate Prewitt
2017-01-26 08:42:58 -07:00
committed by GitHub
+3 -4
View File
@@ -700,9 +700,8 @@ def shell(three=None):
terminal_dimensions = get_terminal_size()
c = pexpect.spawn(
"{0} -i'".format(
shell
),
shell,
["-i"],
dimensions=(
terminal_dimensions.lines,
terminal_dimensions.columns
@@ -739,7 +738,7 @@ def run(command, args, three=None):
# Spawn the new process, and interact with it.
try:
c = pexpect.spawn('{0} {1}'.format(which(command), ' '.join(args)))
c = pexpect.spawn(which(command), list(args))
except pexpect.exceptions.ExceptionPexpect:
click.echo(crayons.red('The command was not found within the virtualenv!'))
sys.exit(1)