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.

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: https://www.goebel-consult.de/blog/2020/alternative-android-betriebssysteme/ Kolumne: https://www.goebel-consult.de/blog/cissp-gefluester/2011-02-fleisige-datensammler-fuer-lukratives-geschaeftsmodell-gesucht/
_______________________________________________
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

Reply via email to