Changeset 2425 for TOOLS/ConsoGENCMIP6/bin/gencmip6_path.py.init
- Timestamp:
- 03/02/15 15:50:26 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/ConsoGENCMIP6/bin/gencmip6_path.py.init
r2421 r2425 7 7 # standard library imports 8 8 import os 9 #import os.path9 import os.path 10 10 11 11 # Application library imports … … 16 16 17 17 # Common paths 18 # ============ 18 19 DIR = { 19 20 "ROOT": ROOT_DIR, … … 23 24 "DODS": None, 24 25 } 26 DIR["SAVEDATA"] = os.path.join(DIR["SAVE"], "data") 27 DIR["SAVEPLOT"] = os.path.join(DIR["SAVE"], "plot") 28 29 for dirname in DIR.itervalues(): 30 if dirname and not os.path.isdir(dirname): 31 try : 32 os.makedirs(dirname) 33 except Exception as rc : 34 print("Could not create {}:\n{}".format(dirname, rc)) 25 35 26 36 # Common files 37 # ============ 27 38 OUT = { 28 39 "PARAM": "OUT_CONSO_PARAM",
Note: See TracChangeset
for help on using the changeset viewer.