Die Suche ergab 2 Treffer

von lutzpfl
Sonntag 22. November 2015, 17:49
Forum: Allgemeine Fragen
Thema: Innerhalb eines python-Programms ein weiteres python-Programm aufrufen
Antworten: 4
Zugriffe: 1016

Re: Innerhalb eines python-Programms ein weiteres python-Programm aufrufen

vielen Dank. Problem gelöst, ich habe ein sym-link von /usr/local/bin zum mail.py angelegt.
von lutzpfl
Sonntag 22. November 2015, 15:58
Forum: Allgemeine Fragen
Thema: Innerhalb eines python-Programms ein weiteres python-Programm aufrufen
Antworten: 4
Zugriffe: 1016

Innerhalb eines python-Programms ein weiteres python-Programm aufrufen

Hallo,
wie kann ich das bewerkstelligen? Ich möchte das script mail.py innerhalb eines python Hauptprogramms aufrufen.
import subprocess
subprocess.call('mail.py')
klappt nicht.
Vielen Dank für eventuelle Hilfe für einen Anfänger.