Ignore:
Timestamp:
06/22/20 11:39:17 (5 years ago)
Author:
jdquinn
Message:

BUG: Bad name for subprocess args.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py

    r25099 r25100  
    2626
    2727    # Get Gmsh version
    28     args = "gmsh -info | grep 'Version' | sed -e 's/Version[[:blank:]]*:[[:blank:]]//' | cut -d '.' -f1"
    29     proc = subprocess.Popen(args, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    30     outs, errs = proc.communicate()
     28    subproc_args = "gmsh -info | grep 'Version' | sed -e 's/Version[[:blank:]]*:[[:blank:]]//' | cut -d '.' -f1"
     29    subproc = subprocess.Popen(subproc_args, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     30    outs, errs = subproc.communicate()
    3131    if errs != '':
    3232        raise Exception("gmshplanet: call to gmsh failed: {}".format(errs))
    3333    gmshmajorversion = int(outs)
    3434    if gmshmajorversion not in [3, 4]:
    35         raise RuntimeError("gmshplanet: Gmsh major version {} not supported!".format( gmshmajorversion))
     35        raise RuntimeError("gmshplanet: Gmsh major version {} not supported!".format(gmshmajorversion))
    3636
    3737    #process options
Note: See TracChangeset for help on using the changeset viewer.