X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02b800ce7c2bb1c1f08075f22be2e7412124b47f..28e88942bc2c9db6ae9a8ef59545d446eefea5fb:/wxPython/wx/py/interpreter.py diff --git a/wxPython/wx/py/interpreter.py b/wxPython/wx/py/interpreter.py index 4eef617272..c2415b7458 100644 --- a/wxPython/wx/py/interpreter.py +++ b/wxPython/wx/py/interpreter.py @@ -17,7 +17,8 @@ class Interpreter(InteractiveInterpreter): revision = __revision__ def __init__(self, locals=None, rawin=None, - stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr): + stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr, + showInterpIntro=True): """Create an interactive interpreter object.""" InteractiveInterpreter.__init__(self, locals=locals) self.stdin = stdin @@ -27,10 +28,11 @@ class Interpreter(InteractiveInterpreter): import __builtin__ __builtin__.raw_input = rawin del __builtin__ - copyright = 'Type "help", "copyright", "credits" or "license"' - copyright += ' for more information.' - self.introText = 'Python %s on %s%s%s' % \ - (sys.version, sys.platform, os.linesep, copyright) + if showInterpIntro: + copyright = 'Type "help", "copyright", "credits" or "license"' + copyright += ' for more information.' + self.introText = 'Python %s on %s%s%s' % \ + (sys.version, sys.platform, os.linesep, copyright) try: sys.ps1 except AttributeError: