From bc2d42e451d7b866f0a28c1c3888a8b54ed219d2 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 7 Jul 2019 00:11:33 +0000 Subject: Replace subprocess.run(..., check=True) with subprocess.check_call(). --- nmigen_boards/ice40_hx8k_b_evn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nmigen_boards/ice40_hx8k_b_evn.py') diff --git a/nmigen_boards/ice40_hx8k_b_evn.py b/nmigen_boards/ice40_hx8k_b_evn.py index 1f6d6d1..4ff8d85 100644 --- a/nmigen_boards/ice40_hx8k_b_evn.py +++ b/nmigen_boards/ice40_hx8k_b_evn.py @@ -62,7 +62,7 @@ class ICE40HX8KBEVNPlatform(LatticeICE40Platform): iceprog = os.environ.get("ICEPROG", "iceprog") with products.extract("{}.bin".format(name)) as bitstream_filename: # TODO: this should be factored out and made customizable - subprocess.run([iceprog, "-S", bitstream_filename], check=True) + subprocess.check_call([iceprog, "-S", bitstream_filename]) if __name__ == "__main__": -- cgit v1.2.3