code works fine on IDLE but vs code will open the notepad window then immediately close it
import subprocess as sp
programme = "Notepad.exe"
fileName = "nerd.txt"
sp.Popen([programme,fileName])
code works fine on IDLE but vs code will open the notepad window then immediately close it
import subprocess as sp
programme = "Notepad.exe"
fileName = "nerd.txt"
sp.Popen([programme,fileName])