]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/py/shell.py
moved vararg CRT functions wrappers to a new wxcrtvararg.h header
[wxWidgets.git] / wxPython / wx / py / shell.py
index fe60b38221bd8c3dc6a8a3ff8b160390d1c713d9..ec8d7f4dae2f618b5548a73fb35610105c1947fb 100644 (file)
@@ -343,11 +343,12 @@ class Shell(editwindow.EditWindow):
     def showIntro(self, text=''):
         """Display introductory text in the shell."""
         if text:
-            if not text.endswith(os.linesep):
-                text += os.linesep
             self.write(text)
         try:
-            self.write(self.interp.introText)
+            if self.interp.introText:
+                if text and not text.endswith(os.linesep):
+                    self.write(os.linesep)
+                self.write(self.interp.introText)
         except AttributeError:
             pass