Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed Mar 7, 2018
1 parent 04945a1 commit 0ef24a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ def do_create_virtualenv(python=None, site_packages=False):
cmd.append('--system-site-packages')
else:
# Default: use pew.
cmd = ['pew', 'new', project.virtualenv_name, '-d']
cmd = ['python', '-m', 'pipenv.pew', 'new', project.virtualenv_name, '-d']

# Pass a Python version to virtualenv, if needed.
if python:
Expand Down Expand Up @@ -2074,8 +2074,8 @@ def do_shell(three=None, python=False, fancy=False, shell_args=None):
else:
workon_name = project.virtualenv_name

cmd = 'pew'
args = ["workon", workon_name]
cmd = 'python'
args = ['-m', 'pipenv.pew', 'workon', workon_name]

# Grab current terminal dimensions to replace the hardcoded default
# dimensions of pexpect
Expand Down
Empty file added pipenv/pew/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions pipenv/pew/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import pew

if __name__ == '__main__':
pew.pew.pew()

0 comments on commit 0ef24a9

Please sign in to comment.