コマンド 1 を popen(python) で処理し、最初のコマンドが終了したら別のコマンド 2 を実行したいと考えています。wait() を使用して機能させると、機能しませんでした.なぜですか? 誰でも私を助けることができますか?
def ant_debug():
ant_debug_cmd = 'cmd /k ant debug'
os.system(ant_debug_cmd)
def adb_install():
apk_debug_path = walk_dir('.\\bin')
adb_install_cmd = 'cmd /k adb install -r ' + apk_debug_path
os.system(adb_install_cmd)
child = subprocess.call(ant_debug())
if child.wait() == 0:
adb_install()