Message351257
I am interested in shlex.join as a way to log subprocess.CompletedProcess.args as a string that users could run in their terminals. I initially assumed that this was also the scope of shlex.join. However, it seems that shlex.join does not accept all types of command arguments supported by subprocess, such as pathlib.Path objects. Should shlex.join support an split_command list that includes pathlib.Path objects and any other types supported by subprocess? |
|
Date |
User |
Action |
Args |
2019-09-06 14:43:48 | dhimmel | set | recipients:
+ dhimmel, vinay.sajip, r.david.murray, Sworddragon, roippi, p-ganssle, cheryl.sabella, bbayles, Matthijs Kooijman |
2019-09-06 14:43:48 | dhimmel | set | messageid: <1567781028.68.0.933694582784.issue22454@roundup.psfhosted.org> |
2019-09-06 14:43:48 | dhimmel | link | issue22454 messages |
2019-09-06 14:43:48 | dhimmel | create | |
|