jeudi 6 août 2020

subprocess.run leads to space interpreted as arg?

I'm writing an extremely simple test suite, and when I call subprocess.run(["./name-of-binary", args], capture_output=True, shell=True), it stores the output of the command. When I call that with args = "", it seems to pass a space to the binary. When I run the binary with an actual space, everything works totally normally. What's going on? Thanks!

Aucun commentaire:

Enregistrer un commentaire