Skip to content

Commit

Permalink
Topology parser: Override stdin file descriptor of the scripts that a…
Browse files Browse the repository at this point in the history
…re called with an empty one
  • Loading branch information
davidrohr committed Sep 13, 2024
1 parent 4996cde commit ff7f885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DATA/tools/parse
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff7f885

Please sign in to comment.