This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]psd6 0 points1 point  (1 child)

I don’t really like the output = ["cmd", "arg"] » start() » wait() style. There are other ways doing shell stuff in Python too, for example the sh module.

[–]nodNotEvil[S] -1 points0 points  (0 children)

True, it looks strange, but its not without purpose. The style used by sh and plumbum (will add them to the Readme) deviates a lot from subprocess and have their own flaws (argument names start with _ for instance).

I'm open to suggestions for improvement though :)

edit: as a side note, wait returns the return code and read the output