From c8bd24f9bb27a870b705b3fc00a77cad46670554 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 30 Sep 2017 10:36:00 -0400 Subject: [PATCH] updates to update Signed-off-by: Kenneth Reitz --- pipenv/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 32d356aa..719c9e93 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -175,14 +175,14 @@ def ensure_latest_self(user=False): # Resolve user site, enable user mode automatically. if site.ENABLE_USER_SITE and site.USER_SITE in sys.modules['pipenv'].__file__: - args = ['install', '--user', '--upgrade', 'pipenv', '--no-cache'] + args = ['pip', 'install', '--user', '--upgrade', 'pipenv', '--no-cache'] else: - args = ['install', '--upgrade', 'pipenv', '--no-cache'] + args = ['pip', 'install', '--upgrade', 'pipenv', '--no-cache'] - sys.modules['pip'].main(args) + os.system(' '.join(args)) click.echo('{0} to {1}!'.format( - crayons.green('Pipenv updated'), + crayons.green('Pipenv appears to be updated'), crayons.yellow('{v.major}.{v.minor}.{v.patch}'.format(v=latest)) )) else: