Opening pdf file
Try:
import subprocess
subprocess.Popen([file],shell=True)
import os
os.startfile(filename)
import webbrowser
webbrowser.open_new(r'file://C:\path\to\file.pdf')
Try:
import subprocess
subprocess.Popen([file],shell=True)
import os
os.startfile(filename)
import webbrowser
webbrowser.open_new(r'file://C:\path\to\file.pdf')