import os def mycmd(): os.system('cmd /c "ipconfig"') mycmd()
os.system("start /wait cmd /c {command}")