gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: jakarta-gump/python/gump view.py
Date Thu, 08 May 2003 07:13:13 GMT
nicolaken    2003/05/08 00:13:13

  Modified:    python/gump view.py
  Log:
  Refactored the args handling out of update.py into conf.py and made all
  .pys use that.
  
  The new format is
  
   python xx.py [-w workspace.xml] argument
  
  Revision  Changes    Path
  1.38      +7 -6      jakarta-gump/python/gump/view.py
  
  Index: view.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/view.py,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- view.py	8 May 2003 02:50:59 -0000	1.37
  +++ view.py	8 May 2003 07:13:13 -0000	1.38
  @@ -75,7 +75,7 @@
   from wxPython.wx import *
   
   from gump import load, buildSequence, log
  -from gump.conf import dir, default
  +from gump.conf import dir, default, handleArgv
   from gump.gen import xmlize
   from gump.model import Module, Project
   
  @@ -607,9 +607,10 @@
     logger.setLevel(logging.DEBUG)
     lh = ViewHandler(app.logview)
     logger.addHandler(lh)
  -  
  +
     # loadspecified or default workspace
  -  app.load(sys.argv[1:] or [default.workspace])
  +  args = handleArgv(sys.argv)
  +  app.load([args[0]])
   
     # start app
     app.MainLoop()
  
  
  

Mime
View raw message