From: <mk...@us...> - 2003-10-25 15:16:00
|
Update of /cvsroot/csp/APPLICATIONS/CSPSim/Bin In directory sc8-pr-cvs1:/tmp/cvs-serv3641/Bin Modified Files: CSPSim.py Log Message: Index: CSPSim.py =================================================================== RCS file: /cvsroot/csp/APPLICATIONS/CSPSim/Bin/CSPSim.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** CSPSim.py 20 Oct 2003 00:23:22 -0000 1.12 --- CSPSim.py 24 Oct 2003 15:40:13 -0000 1.13 *************** *** 61,64 **** --- 61,65 ---- CSP.csplog().setLogClasses(flags) + def runCSPSim(args): if len(args): *************** *** 109,113 **** cachepath = CSP.getCachePath() dar = os.path.join(cachepath, "sim.dar") ! XML = os.path.join(cachepath, "XML") CSP.csplog().setLogLevels(CSP.CSP_ALL, SimData.LOG_ALERT) #print "compile %s %s" % (XML, dar) --- 110,114 ---- cachepath = CSP.getCachePath() dar = os.path.join(cachepath, "sim.dar") ! XML = os.path.join(datapath, "XML") CSP.csplog().setLogLevels(CSP.CSP_ALL, SimData.LOG_ALERT) #print "compile %s %s" % (XML, dar) *************** *** 226,229 **** --- 227,231 ---- log_classes = [] other_args = [] + pause = 0 simdata_loglevel = "ALERT" *************** *** 238,241 **** --- 240,245 ---- action = dumpData other_args.append(arg) + elif arg == '--pause': + pause = 1 elif arg in ("--help", "-h", "-help"): if action == None: *************** *** 276,279 **** --- 280,288 ---- print "Unable to open primary configuration file (%s)" % config sys.exit(0) + + if pause: + print "Hit <ctrl-break> to temporarily exit and set breakpoints." + print "When you are done, continue execution and hit <enter>." + sys.stdin.readline() action(other_args) |