Mar-22-2018, 01:32 PM
(This post was last modified: Mar-22-2018, 01:33 PM by Gribouillis.)
Not a windows user here but instead of opening the pdf with
os.startfile()
, which creates another process out of the reach of your program, you could launch directly a specific pdf viewer with the subprocess module. For example supposing you open pdf files with Acrobat Reader, it could beviewer = shutil.which('AcroRd32') proc = Popen([viewer, filename]) processes.append(proc)