Skip to content Skip to sidebar Skip to footer

How Does Subprocess.call Differ From Os.system

I have a python script to install/uninstall some regularly used programs for me and it also does some shortcut/folder clean up after uninstall. I used to use this code to delete a

Solution 1:

The difference is that os.system excutes in a subshell by default, whereas subprocess.call does not. Try using shell=True.


Post a Comment for "How Does Subprocess.call Differ From Os.system"