Ignore:
Timestamp:
03/02/15 15:50:26 (9 years ago)
Author:
labetoulle
Message:

Save daily plots on WORK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/ConsoGENCMIP6/bin/gencmip6_path.py.init

    r2421 r2425  
    77# standard library imports 
    88import os 
    9 # import os.path 
     9import os.path 
    1010 
    1111# Application library imports 
     
    1616 
    1717# Common paths 
     18# ============ 
    1819DIR = { 
    1920  "ROOT": ROOT_DIR, 
     
    2324  "DODS": None, 
    2425} 
     26DIR["SAVEDATA"] = os.path.join(DIR["SAVE"], "data") 
     27DIR["SAVEPLOT"] = os.path.join(DIR["SAVE"], "plot") 
     28 
     29for 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)) 
    2535 
    2636# Common files 
     37# ============ 
    2738OUT = { 
    2839  "PARAM": "OUT_CONSO_PARAM", 
Note: See TracChangeset for help on using the changeset viewer.