Index: wflow-py/Sandbox/wflow_w3.py =================================================================== diff -u -r4143969ebd6b276284ea6e4198ee693bd6ab506a -r12ea40dc08628f654753679e0972e87b7bb12f7a --- wflow-py/Sandbox/wflow_w3.py (.../wflow_w3.py) (revision 4143969ebd6b276284ea6e4198ee693bd6ab506a) +++ wflow-py/Sandbox/wflow_w3.py (.../wflow_w3.py) (revision 12ea40dc08628f654753679e0972e87b7bb12f7a) @@ -49,8 +49,9 @@ def usage(*args): sys.stdout = sys.stderr - for msg in args: print(msg) - print(__doc__) + for msg in args: + print msg + print __doc__ sys.exit(0) @@ -1071,16 +1072,21 @@ for o, a in opts: - if o == '-C': caseName = a - if o == '-R': runId = a - if o == '-c': configfile = a - if o == '-s': timestepsecs = int(a) - - starttime = dt.datetime(1990,0o1,0o1) + if o == "-C": + caseName = a + if o == "-R": + runId = a + if o == "-c": + configfile = a + if o == "-s": + timestepsecs = int(a) + starttime = dt.datetime(1990, 01, 01) + if _lastTimeStep < _firstTimeStep: - print("The starttimestep (" + str(_firstTimeStep) + ") is smaller than the last timestep (" + str( - _lastTimeStep) + ")") + print "The starttimestep (" + str( + _firstTimeStep + ) + ") is smaller than the last timestep (" + str(_lastTimeStep) + ")" usage() myModel = WflowModel(wflow_cloneMap, caseName, runId, configfile)