Replace subprocess.run(..., check=True) with subprocess.check_call().
[nmigen-boards.git] / nmigen_boards / icestick.py
index 217e411e5dfb319665488451d4575189783aa7ba..e575aacff42f6f561a859574c67c9ee69afe3da7 100644 (file)
@@ -48,7 +48,7 @@ class ICEStickPlatform(LatticeICE40Platform):
     def toolchain_program(self, products, name):
         iceprog = os.environ.get("ICEPROG", "iceprog")
         with products.extract("{}.bin".format(name)) as bitstream_filename:
-            subprocess.run([iceprog, bitstream_filename], check=True)
+            subprocess.check_call([iceprog, bitstream_filename])
 
 
 if __name__ == "__main__":