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_hx1k_blink_evn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nmigen_boards/ice40_hx1k_blink_evn.py') diff --git a/nmigen_boards/ice40_hx1k_blink_evn.py b/nmigen_boards/ice40_hx1k_blink_evn.py index ab280a2..418c593 100644 --- a/nmigen_boards/ice40_hx1k_blink_evn.py +++ b/nmigen_boards/ice40_hx1k_blink_evn.py @@ -42,7 +42,7 @@ class ICE40HX1KBlinkEVNPlatform(LatticeICE40Platform): def toolchain_program(self, products, name): iceburn = os.environ.get("ICEBURN", "iCEburn") with products.extract("{}.bin".format(name)) as bitstream_filename: - subprocess.run([iceburn, "-evw", bitstream_filename], check=True) + subprocess.check_call([iceburn, "-evw", bitstream_filename]) if __name__ == "__main__": -- cgit v1.2.3