Wo hast du denn das snippet her? Der code ist völliger blödsinn ('tschuldigung). Weder ist der rückgabewert von Popen4.wait() wahr, wenn ein fehler auftritt, noch gibt os.rename() irgendwas zurück (außer none). Also nochmal die doku konsulieren.
joe
Huh ? Also dann frage ich mich weshalb es funktioniert. Der Kommando muß natürlich den exit () richtig machen. Merke "true" = Fehler 0 = gut
wait()
Waits for and returns the status code of the child process. The status code encodes both the return code of the process and information about whether it exited using the exit() system call or died due to a signal. Functions to help interpret the status code are defined in the os module; see section 6.1.5 for the W*() family of functions.
Bei rename gebe ich dir allerdings recht.
Moment Nachtrag

Nimm halt ein gescheites BS und nicht windows. Bei denen ist 0 immer gleich Fehler