mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Better repr for shells.Shell
This commit is contained in:
@@ -68,6 +68,12 @@ class Shell(object):
|
||||
self.cmd = cmd
|
||||
self.args = []
|
||||
|
||||
def __repr__(self):
|
||||
return '{type}(cmd={cmd!r})'.format(
|
||||
type=type(self).__name__,
|
||||
cmd=self.cmd,
|
||||
)
|
||||
|
||||
@contextlib.contextmanager
|
||||
def inject_path(self, venv):
|
||||
with temp_environ():
|
||||
|
||||
Reference in New Issue
Block a user