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, I see the most general subprocess.Popen used where subprocess.run would be better. Because subprocess.Popen is so general and more complicated to use, I see subprocess.Popen used incorrectly for simple applications where subprocess.run or subprocess.check_output is more appropriate.
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
- 2020-10-01 – Python asyncio.run boilerplate
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 – nice low priority Python in Windows and Linux