Changeset 369 in lmdz_wrf for trunk/tools/drawing_tools.py


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

Adding folder via `pwd' creation for 'variables_values'

File:
1 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):
Note: See TracChangeset for help on using the changeset viewer.