def __init__(self): self.current_profile_dxf = [] Cad.__init__(self) try: opts, args = getopt.getopt(sys.argv[1:], "h", ["help"]) except getopt.error, msg: print msg print "for help use --help" sys.exit(2)
def __init__(self): save_out = sys.stdout save_err = sys.stderr wx.App.__init__(self) sys.stdout = save_out sys.stderr = save_err Cad.__init__(self) heekscad.init() try: opts, args = getopt.getopt(sys.argv[1:], "h", ["help"]) except getopt.error, msg: print msg print "for help use --help" sys.exit(2)