From dcebcee5135e72ce9c9439f2c344eb3e86eed42b Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 10 Mar 2017 23:32:48 -0500 Subject: [PATCH] basic windows run support --- pipenv/cli.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pipenv/cli.py b/pipenv/cli.py index 2bc6d133..46f93d1d 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -944,6 +944,14 @@ def run(command, args, no_interactive=False, three=None, python=False): click.echo(crayons.red('The command ({0}) was not found within the virtualenv!'.format(which(command)))) sys.exit(1) + # Windows! + except AttributeError: + import subprocess + print([which(command)] + list(args)) + p = subprocess.Popen([which(command)] + list(args), shell=True) + p.wait() + sys.exit(p.returncode) + # Interact with the new shell. if no_interactive: c.wait()