Hi! To kleep m,y request as simple as possible, I'm trying to have a python script open another python script then close itself. It doesn't need to have .read or anything. heres some things I tried and why they failed. For context, "destination" is the path of a "test.ico" file for now so I can see if it works or not. The final "destination" will be a .py file.
open(destination) # Doesn't open the file in IDLE, doesn't when I just run the program and exits withoutbeing commanded to excit
import subprocess
subprocess.run(destination) # prints error "OSError: [WinError 193] %1 is not a valid Win32 application"
subprocess.Popen(destination) # same error
import os
os.startfile(destination) # Worked once but for some reason now refuses to work
import os
os.system(destination) # refuses to work, prints no errors
exec(open(destination).read()) # works but waits for the app to close before continuing execution of current code, which I don't want as I want it to quit
exec(open(destination)) # prints error: "TypeError: exec() arg 1 must be a string, bytes or code object"