File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ class GenerationArgs:
215215 if not args .dummy_run :
216216 case = f'{ lib } ,{ algorithm } ' + case
217217 stdout , stderr = utils .read_output_from_command (
218- command )
218+ command , env = env )
219219 stdout , extra_stdout = utils .filter_stdout (stdout )
220220 stderr = utils .filter_stderr (stderr )
221221
Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ def is_exists_files(files):
5858 return True
5959
6060
61- def read_output_from_command (command ):
61+ def read_output_from_command (command , env = os . environ . copy () ):
6262 res = subprocess .run (command .split (' ' ), stdout = subprocess .PIPE ,
63- stderr = subprocess .PIPE , encoding = 'utf-8' , env = os . environ . copy () )
63+ stderr = subprocess .PIPE , encoding = 'utf-8' , env = env )
6464 return res .stdout [:- 1 ], res .stderr [:- 1 ]
6565
6666
You can’t perform that action at this time.
0 commit comments