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