Replace subprocess.run(..., check=True) with subprocess.check_call().
[nmigen-boards.git] / nmigen_boards / tinyfpga_bx.py
index 5dcd7aa59302498957be334b845ad24e99f0b546..5db90cf55fa5abbc89cc911e75ec1935b4da7d5b 100644 (file)
@@ -45,7 +45,7 @@ class TinyFPGABXPlatform(LatticeICE40Platform):
     def toolchain_program(self, products, name):
         tinyprog = os.environ.get("TINYPROG", "tinyprog")
         with products.extract("{}.bin".format(name)) as bitstream_filename:
-            subprocess.run([tinyprog, "-p", bitstream_filename], check=True)
+            subprocess.check_call([tinyprog, "-p", bitstream_filename])
 
 
 if __name__ == "__main__":