Python subprocess
Python subprocess is the recommended modules for running external programs and scripts from Python. subprocess.run is good for most applications. Too often, we see the most general subprocess.Popen used where subprocess.run would be better. Because subprocess.Popen is so general and more complicated to use, we see subprocess.Popen used incorrectly for simple applications where subprocess.run or subprocess.check_output is more appropriate.
2026
- 2026-03-15 – Matlab exit return code for CI
2025
- 2025-10-08 – Python asyncio.run boilerplate
2024
- 2024-10-06 – Find executable path in Python
- 2024-01-24 – Python subprocess missing DLL detection
2023
- 2023-08-07 – Python subprocess tee to screen and variable
- 2023-08-06 – Python subprocess multi-line Python script
- 2023-06-24 – Python subprocess package executable
- 2023-03-06 – Running Matlab and GNU Octave via Pytest
2021
- 2021-02-28 – Pytest stdout/stderr capture
2020
- 2020-10-28 – Build executable from Python
- 2020-10-20 – Use Python subprocess from Matlab
2019
- 2019-04-09 – Python calling Python via subprocess
- 2019-03-01 – Python pathlib cast to str for subprocess
2018
- 2018-06-28 – Why upgrade to Python 3.7
- 2018-06-20 – Check console script with Pytest
2017
- 2017-10-20 – Low priority Python execution