Hartmut Goebel <h.goe...@goebel-consult.de> wrote: > Hi, >> def syscall(*cmd): >> cmd = ['cmd','/d','/c']+list(cmd) >> subprocess.call(cmd) > > Ich habe keine Ahnung von Windows, wunder mich aber, weshalb Du cmd /d > /c davor stellst. Ich hätte vermutet, dass Python sich selbst darum > kümmert, wenn es nötig wäre.
Ohne das wird autoexec.bat fuer jeden Befehl ausgefuehrt. Das entspricht /etc/profile -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30a Tel: ++49-711-68565868 70569 Stuttgart (Germany) WWW: https://www.tik.uni-stuttgart.de/ _______________________________________________ python-de Mailingliste -- python-de@python.org Zur Abmeldung von dieser Mailingliste senden Sie eine Nachricht an python-de-le...@python.org https://mail.python.org/mailman3/lists/python-de.python.org/ Mitgliedsadresse: arch...@mail-archive.com