Commit eab2bf1
committed
runtime: Document args[0] and the no-usable-args fallback
This follows Python's API, which has 'args' and 'executable' (our
PATH) for Popen [1]). That allows most users (who don't need to
distinguish between args[0] and the executable path) to just use args,
while still providing a means to make that distinction (set 'path')
for folks who do need it.
This restores the ability to explicitly set args[0] independent of the
path, which was requested in opencontainers#34 [2] and ack-ed by Micheal [3] and
Mrunal [4], but didn't match the examples that landed with opencontainers#34.
[1]: https://docs.python.org/3/library/subprocess.html#subprocess.Popen
[2]: opencontainers#34 (comment)
[3]: opencontainers#34 (comment)
[4]: opencontainers#34 (comment)
Signed-off-by: W. Trevor King <[email protected]>1 parent cbda521 commit eab2bf1
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | | - | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | | - | |
96 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
0 commit comments