/[gzz]/gzz/gzz/util/dbg.py
ViewVC logotype

Diff of /gzz/gzz/util/dbg.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tjl, Tue Sep 3 21:11:17 2002 UTC revision 1.2 by Vegai, Wed Sep 4 12:53:52 2002 UTC
# Line 1  Line 1 
1  # Jython:  # Jython:
2  # Provide variables for and read commandline debug options.  # Provide variables for and read commandline debug options.
3    
4    # python imports
5    import re
6    
7    # java imports
8    from java.lang import System
9    
10    # gzz imports
11  import gzz  import gzz
12  from gzz.gfx.gl import GZZGL  from gzz.gfx.gl import GZZGL
13    
# Line 16  def option(o,a): Line 23  def option(o,a):
23      if o in ("-d", "--dbg"):      if o in ("-d", "--dbg"):
24          debugger.debugClass(a, 1)          debugger.debugClass(a, 1)
25      elif o in ("-G", "--gldbg"):      elif o in ("-G", "--gldbg"):
26          GZZGL.loadLib()          GZZGL.loadLib()
27          print "Setting GL debug ",a          print "Setting GL debug ",a
28          GZZGL.setDebugVar(a, 1)          GZZGL.setDebugVar(a, 1)
29      elif o in ("-D",):      elif o in ("-D",):
30          m = re.match('^(.*)=(.*)$', a)          m = re.match('^(.*)=(.*)$', a)
31          assert m          assert m
32          System.setProperty(m.group(1), m.group(2))          setProperty(m.group(1), m.group(2))
33    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26