Windows 7(多分Vistaも)で、Pythonからregeditなどの管理者権限が必要なコマンドを os.systemやos.popen subprocess.Popen/call/check_callをshell=Trueで呼び出した場合は, 自動的にUACのプロンプトが表示されます。 >>> subprocess.check_call("regedit", shell=True) # os.sytem("regedit") しかし, subprocess.Popen/call/check_callを、shell引数を指定しないか、shell=Falseで呼び出すと、UACは出ず、単にエラーとなります。 >>> subprocess.check_call(["regedit"]) Traceback (most recent call last): (中略) WindowsErr
