You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: subprocess/README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
# Python `subprocess` Examples
2
2
3
-
Here are supporting materials for the Real Python tutorial,[The `subprocess` Module: Wrapping Programs With Python](https://realpython.com/python-subprocess/).
3
+
Here are supporting materials for the Real Python tutorial [The `subprocess` Module: Wrapping Programs With Python](https://realpython.com/python-subprocess/).
4
4
5
5
Be aware that some examples are designed for particular operating systems. The `basics_unix.py` file won't work on Windows, for instance.
6
6
7
-
Below are quick descriptions of what the different script do.
7
+
Below, you'll find quick descriptions of what the different scripts do.
8
8
9
9
## [basics_unix.py](basics_unix.py)
10
10
11
11
**Only works on Linux or macOS**
12
12
13
-
Demonstrates basic usage of `subprocess.run()`
13
+
Demonstrates basic usage of `subprocess.run()`.
14
14
15
15
## [basics_win.py](basics_win.py)
16
16
17
17
**Only works on Windows**
18
18
19
-
Demonstrates basic usage of `subprocess.run()`
19
+
Demonstrates basic usage of `subprocess.run()`.
20
20
21
21
## [custom_exit.py](custom_exit.py)
22
22
@@ -26,11 +26,11 @@ Raises custom exit codes:
26
26
$ python custom_exit.py 3
27
27
```
28
28
29
-
This will exit with error code `3`. By default, will exit with code `0`
29
+
This will exit with error code `3`. By default, will exit with code `0`.
30
30
31
31
## [exiter_run.py](exiter_run.py)
32
32
33
-
Calls [custom_exit.py](custom_exit.py) with `subprocess.run()` demonstrating the `check` argument to `.run()`.
33
+
Calls [custom_exit.py](custom_exit.py) with `subprocess.run()`, demonstrating the `check` argument to `.run()`.
34
34
35
35
## [error_handling.py](error_handling.py)
36
36
@@ -54,7 +54,7 @@ Demonstrates using `subprocess.Popen()` to pipe one command into the other.
0 commit comments