Changeset 4127
- Timestamp:
- 2013-10-24T18:58:20+02:00 (11 years ago)
- Location:
- branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS/OOO/ooo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS/OOO/ooo/ooo.py
r4122 r4127 7 7 import locator 8 8 import nml 9 import run 9 10 10 11 def parse_args(): -
branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS/OOO/ooo/run.py
r4122 r4127 6 6 """ 7 7 import subprocess 8 8 import os 9 10 class SubmitError(Exception): 11 pass 12 9 13 def submit(): 10 14 """Simple function that runs the code. … … 18 22 :returns: retcode 19 23 """ 20 retcode = subprocess.call(["./opa"]) 24 exe = "./opa" 25 if os.path.exists(exe): 26 retcode = subprocess.call([exe]) 27 else: 28 raise SubmitError("can not find {}".format(exe)) 21 29 return retcode 22 30
Note: See TracChangeset
for help on using the changeset viewer.