File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ class GenerationArgs:
215
215
if not args .dummy_run :
216
216
case = f'{ lib } ,{ algorithm } ' + case
217
217
stdout , stderr = utils .read_output_from_command (
218
- command )
218
+ command , env = env )
219
219
stdout , extra_stdout = utils .filter_stdout (stdout )
220
220
stderr = utils .filter_stderr (stderr )
221
221
Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ def is_exists_files(files):
58
58
return True
59
59
60
60
61
- def read_output_from_command (command ):
61
+ def read_output_from_command (command , env = os . environ . copy () ):
62
62
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 )
64
64
return res .stdout [:- 1 ], res .stderr [:- 1 ]
65
65
66
66
You can’t perform that action at this time.
0 commit comments