Changeset 32


Ignore:
Timestamp:
07/09/12 18:15:29 (7 years ago)
Author:
lalibert
Message:

Added export to retrieved paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CDB/trunk/driver/diag_driver_comp.py

    r31 r32  
    127127                        out.writei('bash $CDB_SOURCE_DIR/retrieval_script.sh -d ${CDB_DIAG_NAME} -v ${CDB_VAR_LIST} -m ${CDB_MODEL} -e ${CDB_EXPT} -r ${CDB_RUN_ID} -y ${CDB_YEAR}\n') 
    128128                    out.writei('CDB_VAR_ATTRIBUTION=`bash $CDB_SOURCE_DIR/retrieval_script.sh -d ${CDB_DIAG_NAME} -v ${CDB_VAR_LIST} -m ${CDB_MODEL} -e ${CDB_EXPT} -r ${CDB_RUN_ID} -y ${CDB_YEAR}`\n') 
    129                     out.writei('for CDB_VAR in ${CDB_VAR_ATTRIBUTION}; do eval ${CDB_VAR}; done\n') 
     129                    out.writei('for CDB_VAR in ${CDB_VAR_ATTRIBUTION}; do eval "export ${CDB_VAR}"; done\n') 
    130130                    if self.time_diff: 
    131131                        out.writei('#Previous year\n') 
    132132                        out.writei('let "CDB_YEAR-=1"\n') 
    133133                        out.writei('CDB_VAR_ATTRIBUTION=`bash $CDB_SOURCE_DIR/retrieval_script.sh -d ${CDB_DIAG_NAME} -v ${CDB_VAR_LIST} -m ${CDB_MODEL} -e ${CDB_EXPT} -r ${CDB_RUN_ID} -y ${CDB_YEAR}`\n') 
    134                         out.writei('for CDB_VAR in ${CDB_VAR_ATTRIBUTION}; do eval PREV_${CDB_VAR}; done\n') 
     134                        out.writei('for CDB_VAR in ${CDB_VAR_ATTRIBUTION}; do eval "export PREV_${CDB_VAR}"; done\n') 
    135135                        out.writei('#Next year\n') 
    136136                        out.writei('let "CDB_YEAR+=2"\n') 
    137137                        out.writei('CDB_VAR_ATTRIBUTION=`bash $CDB_SOURCE_DIR/retrieval_script.sh -d ${CDB_DIAG_NAME} -v ${CDB_VAR_LIST} -m ${CDB_MODEL} -e ${CDB_EXPT} -r ${CDB_RUN_ID} -y ${CDB_YEAR}`\n') 
    138                         out.writei('for CDB_VAR in ${CDB_VAR_ATTRIBUTION}; do eval NEXT_${CDB_VAR}; done\n') 
     138                        out.writei('for CDB_VAR in ${CDB_VAR_ATTRIBUTION}; do eval "export NEXT_${CDB_VAR}"; done\n') 
    139139                        out.writei('let "CDB_YEAR-=1"\n') 
    140140            elif line.lstrip()[:15].upper() == '#!END YEAR LOOP': 
Note: See TracChangeset for help on using the changeset viewer.