- Huge improvement in error output.

This commit is contained in:
ccremers
2006-08-07 11:02:14 +00:00
parent 3178e8e90c
commit 7bae7875a0
3 changed files with 17 additions and 5 deletions

View File

@@ -4,6 +4,7 @@
""" Import externals """
import wx
import sys
#---------------------------------------------------------------------------
@@ -63,7 +64,15 @@ class ScytherApp(wx.App):
splash.Show()
""" Build up """
self.mainWindow = Mainwindow.MainWindow('scythergui-default.spdl')
infile = ''
args = sys.argv[1:]
if len(args) > 0:
if args[0] == 'test':
infile = 'scythergui-default.spdl'
else:
infile = args[0]
self.mainWindow = Mainwindow.MainWindow(infile)
self.SetTopWindow(self.mainWindow)
self.mainWindow.Show()