Closed cassegfault closed 2 years ago
Hey danish, will see if I can switch it over at some point. If you check out the code that I liked above, the commands library actually was calling those os commands directly. I agree using a subprocess is a better implentation
If you check out the code that I liked above, the commands library actually was calling those os commands directly.
You're right but, correct me If I'm wrong here, isn't this similar to using the os
module? Anyway, as you said, It'd make much more sense If we jump over to subprocess
for this.
The commands library has been removed in Python 3 (see the docs). For the sake of consistent behavior, I have replaced the call to the commands library with the code called by the commands library.