Preload file if given on command line

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-01-29 03:25:03 +00:00
parent b29612a525
commit e05d0c18a6

View File

@@ -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