Skip to content

Commit 0ef24a9

Browse files
committed
1 parent 04945a1 commit 0ef24a9

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

pipenv/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ def do_create_virtualenv(python=None, site_packages=False):
937937
cmd.append('--system-site-packages')
938938
else:
939939
# Default: use pew.
940-
cmd = ['pew', 'new', project.virtualenv_name, '-d']
940+
cmd = ['python', '-m', 'pipenv.pew', 'new', project.virtualenv_name, '-d']
941941

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

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

20802080
# Grab current terminal dimensions to replace the hardcoded default
20812081
# dimensions of pexpect

pipenv/pew/__init__.py

Whitespace-only changes.

pipenv/pew/__main__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pew
2+
3+
if __name__ == '__main__':
4+
pew.pew.pew()
5+

0 commit comments

Comments
 (0)