mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #102 from hellerve/master
Use list of arguments in calls to `pexpect.spawn`
This commit is contained in:
+3
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user