diff --git a/wxPython/wxPython/lib/PyCrust/PyShellApp.py b/wxPython/wxPython/lib/PyCrust/PyShellApp.py index a72869083f..5a2e522b82 100755 --- a/wxPython/wxPython/lib/PyCrust/PyShellApp.py +++ b/wxPython/wxPython/lib/PyCrust/PyShellApp.py @@ -27,6 +27,11 @@ class App(wx.wxApp): # >>> sys.application.whatever import sys sys.application = self + + # exec a startup script if one is given on the command line + if len(sys.argv) > 1: + self.shellFrame.shell.execStartupScript(sys.argv[1]) + return True