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:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user