mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
cleanup
This commit is contained in:
+4
-2
@@ -440,12 +440,14 @@ def python(args):
|
||||
|
||||
@click.command()
|
||||
def shell():
|
||||
shell = os.environ['SHELL']
|
||||
# Spawn the Python process, and iteract with it.
|
||||
#
|
||||
click.echo(crayons.yellow('Spawning virtualenv shell.'))
|
||||
|
||||
shell = os.environ['SHELL']
|
||||
c = pexpect.spawn("{} -c '. {}; exec {} -i'".format(shell, activate_virtualenv(source=False), shell))
|
||||
c.send(activate_virtualenv() + '\n')
|
||||
|
||||
# Interact with the new shell.
|
||||
c.interact()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user