import os os.system('cmd /k "Your Command Prompt Command"')
import os cmd = "git --version" returned_value = os.system(cmd) # returns the exit code in unix