Skip to content

Commit

Permalink
use run instead of Popen
Browse files Browse the repository at this point in the history
  • Loading branch information
ctroupin committed Aug 2, 2017
1 parent 19ab8d0 commit 169a149
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydiva2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,15 +1025,15 @@ def make(self, divadir, datafile=None, paramfile=None, contourfile=None, outputf
logger.error("File {0} doesn't exist".format(contourfile))
logger.error("Execution stopped")
return
"""

# Check for mesh
if os.path.exists(divafiles.mesh) and os.path.exists(divafiles.meshtopo):
logger.info("Mesh already exists")
else:
Diva2DMesh().make(divadir,
contourfile=divafiles.contour,
paramfile=divafiles.parameter)
"""


calcprocess = subprocess.run("./divacalc", cwd=divadirs.diva2d,
stdout=subprocess.PIPE, shell=True)
Expand Down

0 comments on commit 169a149

Please sign in to comment.