so, wie versprochen hier die Lösung:
1 2 3 4 5 6 7 8 | elif varkommando == "textverarbeitung ubuntu": process = subprocess.Popen(["/usr/lib/libreoffice/program/soffice", "--writer", *sys.argv[1:]], stdin = subprocess.PIPE, stdout = subprocess.PIPE) process.wait() elif varkommando == "tabellenkalkulation ubuntu": process = subprocess.Popen(["/usr/lib/libreoffice/program/soffice", "--calc", *sys.argv[1:]], stdin=subprocess.PIPE, stdout=subprocess.PIPE) process.wait() |
Vielen Dank für Eure Hilfe!
Moderiert von rklm:
Der Übersichtlichkeit halber habe ich das Thema jetzt von diesem abgetrennt. Mittlerweile geht es ja darum, wie man so einen Aufruf in Python 3 technisch korrekt bewerkstelligt. Bitte bleibt bei einem Thema pro Thema! (siehe auch Richtig fragen)