Changeset 369 in lmdz_wrf for trunk


Ignore:
Timestamp:
Mar 19, 2015, 6:31:17 PM (10 years ago)
Author:
lfita
Message:

Adding folder via `pwd' creation for 'variables_values'

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r363 r369  
    711711    ['z', 'geopotential_height', 0.0, 80000.0, 'geopotential|height', 'm2s-2', 'rainbow']
    712712    """
     713    import subprocess as sub
     714
    713715    fname='variables_values'
    714716
     
    718720        quit()
    719721
    720     infile = 'variables_values.dat'
     722    folderins = sub.Popen(["pwd"], stdout=sub.PIPE)
     723    folder = list(folderins.communicate())[0].replace('\n','')
     724
     725    infile = folder + '/variables_values.dat'
    721726
    722727    if not os.path.isfile(infile):
  • trunk/tools/nc_var_tools.py

    r364 r369  
    159159    ['z', 'geopotential_height', 0.0, 80000.0, 'geopotential|height', 'm2s-2', 'rainbow']
    160160    """
     161    import subprocess as sub
     162
    161163    fname='variables_values'
    162164
     
    166168        quit()
    167169
    168     infile = 'variables_values.dat'
     170    folderins = sub.Popen(["pwd"], stdout=sub.PIPE)
     171    folder = list(folderins.communicate())[0].replace('\n','')
     172
     173    infile = folder + '/variables_values.dat'
    169174
    170175    if not os.path.isfile(infile):
Note: See TracChangeset for help on using the changeset viewer.