FEM: Redirect ElmerGrid output to /dev/null

Up until now the output would appear in the cli in which FreeCAD was
started. This is unnecessary and makes test output very confusing.
This commit is contained in:
Markus Hovorka
2019-09-23 21:16:39 +02:00
committed by Bernd Hahnebach
parent 9c728a03cc
commit 708ef0cd6a

View File

@@ -135,7 +135,7 @@ class Writer(object):
_ELMERGRID_OFORMAT,
unvPath,
"-out", self.directory]
subprocess.call(args)
subprocess.call(args, stdout=subprocess.DEVNULL)
def _writeStartinfo(self):
path = os.path.join(self.directory, _STARTINFO_NAME)