Use subprocess instead of os.system to launch PDF/PS viewer
os.system() is deprecated, does not work correctly if the path name of the executable includes spaces, and needs an ampersand to put the called program in the background (which does not work on Windows). subprocess.Popen() solves all these problems.
Loading
Please register or sign in to comment