标签: python linux pdf raspberry-pi3 raspbian
当我运行程序时,该文件不会打开,并且不会出现任何错误。 我该如何解决?
import subprocess, os, signal from time import sleep p = subprocess.Popen("/home/pi/Desktop/d.pdf", shell=True, preexec_fn=os.setsid) sleep(5) os.killpg(p.pid, signal.SIGTERM)