os.system abwarten
@problembär: Ich habe nicht soviel Phantasie mir vorzustellen wie das mit der Dateigrösse zuverlässig gehen sollte. Das ist einfach Mist was Du da vorschlägst.
Code: Alles auswählen
import os
import time
os.system("gnuplot < sin_cos.gnu; touch ichbinfertig.tmp")
while not os.path.isfile("ichbinfertig.tmp"):
time.sleep(0.2)
os.remove("ichbinfertig.tmp")
Noe, wenn schon so:problembär hat geschrieben: So verständlicher?
Code: Alles auswählen
subprocess.call("gnuplot < sin_cos.gnu", shell=True)