From ff7f885e86453305679edc42c973a3d6fef9b91f Mon Sep 17 00:00:00 2001 From: David Rohr Date: Fri, 13 Sep 2024 23:23:57 +0200 Subject: [PATCH] Topology parser: Override stdin file descriptor of the scripts that are called with an empty one --- DATA/tools/parse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DATA/tools/parse b/DATA/tools/parse index dd2169b52..e5b1d2d87 100755 --- a/DATA/tools/parse +++ b/DATA/tools/parse @@ -152,7 +152,7 @@ for line in f: command += ' > ' + filename print('Running DPL command', command) starttime = time.time() - retVal = subprocess.run(command, shell=True, stderr=subprocess.PIPE, stdout=subprocess.PIPE) + retVal = subprocess.run(command, shell=True, stderr=subprocess.PIPE, stdout=subprocess.PIPE, input="") print('Execution time: ', time.time() - starttime) tmpchk = retVal.stderr.decode() + retVal.stdout.decode() haserror = 0