summaryrefslogtreecommitdiff
path: root/pexpect/replwrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'pexpect/replwrap.py')
-rw-r--r--pexpect/replwrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/replwrap.py b/pexpect/replwrap.py
index c930f1e..6c34ce4 100644
--- a/pexpect/replwrap.py
+++ b/pexpect/replwrap.py
@@ -108,7 +108,7 @@ class REPLWrapper(object):
+ command)
return u''.join(res + [self.child.before])
-def python(command="python"):
+def python(command=sys.executable):
"""Start a Python shell and return a :class:`REPLWrapper` object."""
return REPLWrapper(command, u">>> ", u"import sys; sys.ps1={0!r}; sys.ps2={1!r}")